dosbatch indent : Indenting for filetype dosbatch
| script karma
Downloaded by 464
Comments, bugs, improvements
script versions (upload new version)
|I couldn't find an indent script for DOS batch files so I wrote a simple one. It just follows these rules:
- generally keep the indent of the previous line
- if previous line is not a comment and has ( and no matching ), increase indent
- if this line starts with ), decrease indent
I started by cutting down and modifying Erik Janssen's awk.vim.
|Copy the file into one of the indent directories in your runtime path (see :help 'runtimepath'), personally I put it in c:\program files\vim\vimfiles\indent\
Make sure filetype-specific indenting is switched on (see :help filetype), personally I put this in my _vimrc file
:filetype indent on
Click on the package to download.
ip used for rating: 18.104.22.168