From c34ff14e3bff794f71aa6eccb4cd087074d72b14 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 16 Jul 2014 07:24:39 -0400 Subject: [PATCH] T now copies to the end of the line (like D but without deletion) --- vim/config/keyboard.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 92f6815..4e7de13 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -181,6 +181,8 @@ " P | (V) -> save selection to the buffer and paste over " p | (V) -> preserve the buffer pasting over selected text " 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 " " (delete/cut functions) " x | (N) -> delete the char(s) under and the cursor @@ -572,6 +574,10 @@ vnoremap P p xmap p ReplaceWithRegisterVisual + "copy to the end of the line + nnoremap T vg_y + vnoremap T g_y + "Alternatives to cut/deletion commands that don't replace the buffer nnoremap x "_x vnoremap x "_x