sponsor Vim development Vim logo Vim Book Ad

octave.vim : Indent file for the GNU Octave language

 script karma  Rating 1/1, Downloaded by 156  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 -----
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
octave.vim 1.2 2023-03-28 6.0 Rik *** Initial upload
ip used for rating: 18.191.186.72

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github