From cb0122bff1c4365707a13aa183185b04d6e1c0d7 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 21 Mar 2014 10:06:06 -0400 Subject: [PATCH] Added mappings for to make it replace the current word with the paste buffer in normal mode, and the selection in visual mode --- vim/config/keyboard.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index bf4b6c9..905aa83 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -24,6 +24,8 @@ " | (A) -> toggle collapsed/folded rows " | (N) -> format document and return to current line " | (N) -> remove whitespace +" | (N) -> paste and replace the current word +" | (V) -> paste and replace the selection " " (neocomplcache) " | (I) -> write the part common to all suggestions @@ -83,6 +85,10 @@ "map shift to enable middle-click paste while being held map map! + + "map shift-p to paste and replace the current word or selection + nnoremap "_diwP + vnoremap "_d"0P "}}} "PLUGIN KEYBINDINGS {{{