113

GitHub - raviqqe/vim-nonblank: Delete extra blank characters on Vim

 6 years ago
source link: https://github.com/raviqqe/vim-nonblank
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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 Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK