mirror of https://github.com/McSinyx/vim-octave
Automate Octave source file recognition
This replaces the clumsy instruction we used to tell people in README
This commit is contained in:
parent
50ec8b2aed
commit
c5fc6a7856
14
README.md
14
README.md
|
@ -59,15 +59,5 @@ Note that this plugin contributes to
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add the following lines to your `vimrc`
|
The plugin should work out of the box. You can enable omni completion
|
||||||
|
by setting `omnifunc=syntaxcomplete#Complete`.
|
||||||
```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`.
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
au! BufRead,BufNewFile *.m,*.oct setlocal filetype=octave
|
Loading…
Reference in New Issue