octave.vim : Indent file for the GNU Octave language
script karma |
Rating 1/1,
Downloaded by 244 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Rik *** |
|
script type |
indent |
|
description |
This file provides automatic indenting for the GNU Octave programming language.
Features
* Indents entire Octave grammar (endwhile, endfor, etc.), not just Matlab keywords
* Indents according to best practices of Octave Core Maintainers
Notes
* Simplistic algorithm is not a true replacement for a specialized indenter
For Octave syntax highlighting see vimscript #3600. |
|
install details |
Syntax file install on a UNIX-like system
1) mkdir -p ~/.vim/indent
2) cp octave.vim ~/.vim/indent/
3) Add the following lines to your ~/.vimrc to have ViM use the file
----- SNIP -----
" Octave filetype detection
augroup filetypedetect
au! BufRead,BufNewFile *.m set filetype=octave
augroup END
----- SNIP ----- |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.175
|