sponsor Vim development Vim logo Vim Book Ad

put_blank_lines.vim : Mapping targets to insert blank lines

 script karma  Rating -1/1, Downloaded by 1  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
script type
This plugin provides mapping targets for inserting blank lines above or below the current line without going into insert mode. The applicable code is lifted from unimpaired.vim, vimscript #1590. It still works with repeat.vim, vimscript #2136, if that's installed, to make the mappings repeatable.

I wrote this because I used these mappings from the original plugin frequently, but (almost) nothing else from it. The only functional difference is that the number of added lines is not reported, via a :silent suppression.

install details
Drop plugin/put_blank_lines.vim in your ~/.vim/plugin directory. Add doc/put_blank_lines.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.

To set mappings exactly like those from the original plugin, you might write this in your .vimrc:

    nmap [<Space> <Plug>PutBlankLinesAbove
    nmap ]<Space> <Plug>PutBlankLinesBelow
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-put-blank-lines-0.2.0.tar.gz 0.2.0 2018-06-17 6.0 Tom Ryder Backport to 6.0
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
OSDN.net Logo