dosbatch indent : Indenting for filetype dosbatch
| script karma |
Rating 7/4,
Downloaded by 885 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Geoff Wood |
| |
| script type |
| indent |
| |
| description |
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. |
| |
| install details |
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 |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.46
|