diff --git a/README.md b/README.md index db9e135..7addead 100644 --- a/README.md +++ b/README.md @@ -59,15 +59,5 @@ Note that this plugin contributes to ## Usage -Add the following lines to your `vimrc` - -```vim -" Octave syntax -augroup filetypedetect - autocmd! - autocmd BufRead,BufNewFile *.m,*.oct setlocal filetype=octave -augroup END -``` - -Omni completion should works out-of-box by setting -`omnifunc=syntaxcomplete#Complete`. +The plugin should work out of the box. You can enable omni completion +by setting `omnifunc=syntaxcomplete#Complete`. diff --git a/ftdetect/octave.vim b/ftdetect/octave.vim new file mode 100644 index 0000000..eaf40f0 --- /dev/null +++ b/ftdetect/octave.vim @@ -0,0 +1 @@ +au! BufRead,BufNewFile *.m,*.oct setlocal filetype=octave