Clarify the comments for ctrl+arrows

This commit is contained in:
Kevin MacMartin 2024-10-16 21:42:08 -04:00
parent dba8520b56
commit 93ecc605e6

View file

@ -123,6 +123,7 @@
" "
" <Ctrl-Up> | (N) -> move four lines up " <Ctrl-Up> | (N) -> move four lines up
" <Ctrl-Down> | (N) -> move four lines down " <Ctrl-Down> | (N) -> move four lines down
"
" <Ctrl-Right> | (N) -> move one word right " <Ctrl-Right> | (N) -> move one word right
" <Ctrl-Left> | (N) -> move one word left " <Ctrl-Left> | (N) -> move one word left
" "
@ -489,12 +490,15 @@
nnoremap = + nnoremap = +
nnoremap _ - nnoremap _ -
"map ctrl+direction to shifting the screen in that direction "map ctrl+up/down to moving the cursor up and down by 4 lines
nnoremap <C-Up> 4k nnoremap <C-Up> 4k
nnoremap <C-Down> 4j nnoremap <C-Down> 4j
"map ctrl+right/left to moving the cursor left and right by one word
nnoremap <C-Right> <S-Right> nnoremap <C-Right> <S-Right>
nnoremap <C-Left> <S-Left> nnoremap <C-Left> <S-Left>
"map alt+direction to moving the viewport in that direction
noremap <A-Up> <ScrollWheelUp> noremap <A-Up> <ScrollWheelUp>
nnoremap <A-Up> <ScrollWheelUp> nnoremap <A-Up> <ScrollWheelUp>
xnoremap <A-Up> <ScrollWheelUp> xnoremap <A-Up> <ScrollWheelUp>