Vim plugin for optfmt
. Implementation heavily borrowed from
vim-crlfmt.
The plugin by default will format *.opt
files on save. Under the hood it uses
optfmt
to process the files.
Save the file or call :OptFmt
.
" Turn off autosave formatting
g:optfmt_autosave = 0 [default = 1]
" Don't display error message if optfmt fails
g:optfmt_fail_silently = 1 [default = 0]
Vim-optfmt follows the standard runtime path structure. For Pathogen just clone the repo. For other plugin managers add the appropriate lines and execute the plugin's install command.