Skip to content

raviqqe/vim-nonblank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-nonblank

This plugin deletes trailing whitespaces on every write.

Installation

Using vim-plug,

Plug 'raviqqe/vim-nonblank'

Example

A buffer ($ denotes a newline character)

foo  $
$
  $
bar baz   $
  $
$

will be normalized as below.

foo$
$
$
bar baz$

Configuration

Disabling auto deletion

Set the enabled flag to 0.

let g:nonblank_enabled = 0

Then you can run :NonBlank command manually.

Blacklisting filetypes

Set the blacklist flag.

let g:nonblank_blacklist = ['python']

The default value is ['diff', 'gitcommit'].

License

The Unlicense

About

Delete trailing whitespaces on every write

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published