Skip to content

derekprior/vim-trimmer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 

vim-trimmer

A super-simple vim plugin that:

  • Adds an autocmd that trims trailing whitespace on buffer write while preserving cursor position.
  • Optionally disables the autocmd for specified blacklisted filetypes (see configuration).

Installation

Use Vundle and add the following to your .vimrc:

Bundle 'derekprior/vim-trimmer'

Run the :BundleInstall command and you're off.

Configuration

To opt certain filetypes out of the autocommand, add them to the blacklist array like so: let g:trimmer_blacklist = ['markdown', 'make'].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published