Set Y to vY in normal mode so Y can copy lines in neovim

This commit is contained in:
Kevin MacMartin 2022-04-13 16:49:49 -04:00
parent 2a48821637
commit 272467b1ce

View file

@ -136,7 +136,8 @@
" <Leader>p | (N) -> view the paste buffers and register contents " <Leader>p | (N) -> view the paste buffers and register contents
" P | (V) -> save selection to the buffer and paste over " P | (V) -> save selection to the buffer and paste over
" p | (V) -> preserve the buffer pasting over selected text " 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
" <Ctrl-p>Direction | (N) -> paste in the direction entered " <Ctrl-p>Direction | (N) -> paste in the direction entered
" T | (N) -> copy to the end of the line " T | (N) -> copy to the end of the line
" T | (V) -> 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 "copy the current character in normal mode
nnoremap y vy nnoremap y vy
"copy the line in normal mode
nnoremap Y vY
"copy to the end of the line "copy to the end of the line
nnoremap T vg_y nnoremap T vg_y
vnoremap T g_y vnoremap T g_y