Browse Source

Automate Octave source file recognition

This replaces the clumsy instruction we used to tell people in README
pull/3/head
Adam Stankiewicz 2 years ago committed by GitHub
parent
commit
c5fc6a7856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      README.md
  2. 1
      ftdetect/octave.vim

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

1
ftdetect/octave.vim

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