Skip to content

sareyko/neat.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neat.vim

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

Demo screencast

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, add an autoloadable file neat/<ft>.vim and define a global variable with the name g:neat#<ft>#commands in there. This variable has to be a list of command strings to be executed on a temporary buffer provided by neat.vim.

Example

To create a simple definition for files of type xml, create autoload/neat/xml.vim with the following contents:

let neat#xml#commands = [ '%s/></>\r</ge', '%normal ==' ]

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors