dosbatch indent : Indenting for filetype dosbatch
| script karma
Downloaded by 496
Comments, bugs, improvements
|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
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 126.96.36.199