From 636849690ba73467a7aa696ff1187370223b316e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 3 Nov 2014 07:21:18 -0500 Subject: [PATCH] add back single character copy in normal mode --- vim/config/keyboard.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index b4ddb58..b081fd8 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -132,6 +132,7 @@ " p | (N) -> view the paste buffers and register contents " P | (V) -> save selection to the buffer and paste over " p | (V) -> preserve the buffer pasting over selected text +" y | (N) -> copy the character the cursor is on " Direction | (N) -> paste in the direction entered " T | (N) -> copy to the end of the line " T | (V) -> copy to the end of the line @@ -555,6 +556,9 @@ vnoremap P p xmap p ReplaceWithRegisterVisual + "copy the current character in normal mode + nnoremap y vy + "copy to the end of the line nnoremap T vg_y vnoremap T g_y