VIM Pages
Main Page
Colorschemes
Ftplugins
Indent
Miscellaneous
Plugins
Syntax Files
User Manual

Download Ftplugin Files
dosbatch.vim (1KB)
(2012-04-24) updated!
postscr.vim (1KB)
(2012-04-24) updated!
Both zipped (2KB)
(2012-04-24) updated!

Internet Links
VIM Online

VIM Ftplugin Files

I currently maintain some ftplugin files that are part of the standard VIM distribution.

Check VIM Online for other ftplugin files as well as plugins, syntax files, and tips.


DOS batch

The DOS batch ftplugin file sets VIM up for automatic formatting of Batch file comments. When you start a new line before or after a comment VIM will automatically start the new line with the same comment as the original. Auto-wrap of file text is also turned off if you have textwidth set, but this does not apply to comments.

updated! The ftplugin file has been updated to include a definition of the b:undo_ftplugin variable.

Top

PostScript

The PostScript ftplugin file sets VIM up for automatic formatting of PS file comments. This does not currently include DSC comments. Auto-wrap of file text is also turned off if you have textwidth set, but this does not apply to comments.

If you have enabled the matchit plugin (see VIM documentation) then the ftplugin file adds the following pairs of operators that can be jumped between with % command:

  • << and >>
  • begin and end
  • save and restore
  • gsave and grestore

updated! The ftplugin file has been updated to include a definition of the b:undo_ftplugin variable.

Top

Copyright© 1999-2015.
Mike Williams.
All rights reserved.
That's all folks!