Skip to content

optionalg/neat.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neat.vim

A simple VIM plugin to help you pretty print your data.

Usage

Just call :Neat to make your current buffer neater. Ranges work as well.

Want to invoke the neatness function of another filetype? Use :Neat <ft>.

Extending neat.vim

To create neatness for your filetypes, define a global variable with the name g:Neat<ft> whereas <ft> is your filetype with the first letter Capitalized. This variable has to be a list of command strings.

Example

A simple definition for files of type xml:

let g:NeatXml = [ 's/></>\r</ge', 'normal ==' ]

About

A simple VIM plugin to help you pretty print your data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published