Added mappings for <Shift-p> to make it replace the current word with

the paste buffer in normal mode, and the selection in visual mode
This commit is contained in:
Kevin 2014-03-21 10:06:06 -04:00
parent 36505ed9b5
commit cb0122bff1

View file

@ -24,6 +24,8 @@
" <F12> | (A) -> toggle collapsed/folded rows " <F12> | (A) -> toggle collapsed/folded rows
" <Leader><C-f> | (N) -> format document and return to current line " <Leader><C-f> | (N) -> format document and return to current line
" <Leader><C-w> | (N) -> remove whitespace " <Leader><C-w> | (N) -> remove whitespace
" <Shift-p> | (N) -> paste and replace the current word
" <Shift-p> | (V) -> paste and replace the selection
" "
" (neocomplcache) " (neocomplcache)
" <Tab> | (I) -> write the part common to all suggestions " <Tab> | (I) -> write the part common to all suggestions
@ -83,6 +85,10 @@
"map shift to enable middle-click paste while being held "map shift to enable middle-click paste while being held
map <S-Insert> <MiddleMouse> map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse> map! <S-Insert> <MiddleMouse>
"map shift-p to paste and replace the current word or selection
nnoremap <S-p> "_diwP
vnoremap <S-p> "_d"0P
"}}} "}}}
"PLUGIN KEYBINDINGS {{{ "PLUGIN KEYBINDINGS {{{