From 272467b1ce1c331f9f4f0c225b9b4e4508baa0a7 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 13 Apr 2022 16:49:49 -0400 Subject: [PATCH] Set Y to vY in normal mode so Y can copy lines in neovim --- vim/config/keyboard.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 0d758eb..b800cfb 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -136,7 +136,8 @@ " 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 +" y | (N) -> copy the character the cursor is on in normal mode +" Y | (N) -> copy the line in normal mode " 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 @@ -724,6 +725,9 @@ "copy the current character in normal mode nnoremap y vy + "copy the line in normal mode + nnoremap Y vY + "copy to the end of the line nnoremap T vg_y vnoremap T g_y