Add mapping to paste onto next line
David Blume

David Blume commited on 2018-08-22 10:17:06
Showing 1 changed files, with 4 additions and 1 deletions.

... ...
@@ -1,4 +1,4 @@
1
-" Version 2018-05-12.1 - jk and remove comments on same line as remaps
1
+" Version 2018-08-22.1 - added Control+p for paste onto next line
2 2
 set nocompatible    " Use Vim defaults, forget compatibility with vi.
3 3
 set bs=2            " allow backspacing over everything in insert mode
4 4
 set wildmenu        " Allows command-line completion with tab
... ...
@@ -115,6 +115,9 @@ nmap <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/
115 115
 " pastetoggle
116 116
 nmap <leader>p :set invpaste paste?<cr>
117 117
 
118
+" Control+p to paste onto next line
119
+nmap <C-p> :pu<cr>
120
+
118 121
 nmap <leader>e :NERDTreeToggle %:p:h<cr>  " install nerdtree (e for Explore)
119 122
 nmap <leader>l :TlistToggle<cr>           " install taglist
120 123
 nmap <leader>bd :Bdelete<cr>              " install vim-bbye
121 124