Skip to content

vim plugin adding mappings to insert/remove padding in the form of empty lines

License

Notifications You must be signed in to change notification settings

notuxic/vim-padline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

padline

Features

padline adds <Plug>-mappings and commands to insert or remove padding in the form of empty lines.

Padding can be added above, below or around a line or visual selection.

padline does not have any side-effects such as

  • changing cursor position
  • modifying jump-list
  • starting a new change (ie. it does not break dot-repeatability)

For more information, have a look at the Documentation

Examples

Action Description Screencast
<Plug>PadLineAbove add empty line above current line insert above
3<Plug>PadLineBelow add 3 empty lines below current line insert 3 below
2<Plug>PadBlockAround add 2 empty lines around visual selection visual 2 around
:56,60PadAround2<CR> add 2 empty lines around a range insert 2 around range
3<Plug>UnpadLineAround remove up to 3 consecutive empty lines around current line (note the unbalanced padding); Unpad searches for next occurrence of consecutive empty lines remove 3 around
/foo cw hello<Esc> n <Plug>PadLineAbove .n. add empty line above current line, does not interfere with dot-repeatability dot repeat

Installation

Using vim-plug:

Insert the following line in your .vimrc inside the plug#begin(...)/plug#end() block.

Plug 'notuxic/vim-padline'

About

vim plugin adding mappings to insert/remove padding in the form of empty lines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published