Automate Octave source file recognition

This replaces the clumsy instruction we used to tell people in README
This commit is contained in:
Adam Stankiewicz 2020-09-01 12:58:44 +02:00 committed by GitHub
parent 50ec8b2aed
commit c5fc6a7856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 12 deletions

View File

@ -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`.

1
ftdetect/octave.vim Normal file
View File

@ -0,0 +1 @@
au! BufRead,BufNewFile *.m,*.oct setlocal filetype=octave