mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-26 00:01:27 -05:00
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:
parent
36505ed9b5
commit
cb0122bff1
1 changed files with 6 additions and 0 deletions
|
@ -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 {{{
|
||||||
|
|
Loading…
Reference in a new issue