octave.vim : Another syntax highlighting file for octave
script karma |
Rating 39/18,
Downloaded by 1769 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Francisco Castro |
|
script type |
syntax |
|
description |
This script is based in the matlab syntax file, however it adds a few significant features:
* Supports the octave syntax, including things like endwhile, the # comment, the strings delimited by ' and ", etc.
* Highlights the predefined functions like normal_cdf, sqrt, etc...
* Highlights any functions defined in the file being editted, for example if you are editting a file containing something like this:
function my_function()
...
endfunction
it will highlight appearances of my_function in the current file. |
|
install details |
The installation procedure is:
1) mkdir -p ~/.vim/syntax
2) Copy octave.vim to ~/.vim/syntax/
3) Then add the following lines to your ~/.vimrc
" Copy from here
" Octave Syntax
augroup filetypedetect
au! BufRead,BufNewFile *.m,*.oct setfiletype octave
augroup END
" to here.
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.175
|