put_blank_lines.vim : Mapping targets to insert blank lines
| script karma
Downloaded by 1
Comments, bugs, improvements
script versions (upload new version)
|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.
|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
Click on the package to download.
ip used for rating: