Skip to content

mgartner/vim-optfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

vim-optfmt

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.

Usage

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]

Install

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.

  • Pathogen
  • git clone https://github.com/mgartner/vim-optfmt.git ~/.vim/bundle/vim-optfmt
  • vim-plug
  • Plug 'mgartner/vim-optfmt'
  • NeoBundle
  • NeoBundle 'mgartner/vim-optfmt'
  • Vundle
  • Plugin 'mgartner/vim-optfmt'

About

Vim plugin for cockroachdb/cockroach optfmt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published