mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-13 16:32:30 -05:00
Revert Ctrl+Arrow keys functionality and use Alt+Arrow keys to scroll the page, then use Shift+Ctrl+Arrow keys to move a line or block
This commit is contained in:
parent
1c0a594290
commit
8e28017953
1 changed files with 46 additions and 46 deletions
|
@ -223,20 +223,25 @@
|
||||||
" = | (N) -> go to the first char on the next line
|
" = | (N) -> go to the first char on the next line
|
||||||
" _ | (N) -> go to the first char on the previous line
|
" _ | (N) -> go to the first char on the previous line
|
||||||
"
|
"
|
||||||
" <Ctrl-Up> | (A) -> scroll up
|
" <Ctrl-Up> | (N) -> move four lines up
|
||||||
" <Ctrl-Down> | (A) -> scroll down
|
" <Ctrl-Down> | (N) -> move four lines down
|
||||||
" <Ctrl-Right> | (A) -> scroll right
|
" <Ctrl-Right> | (N) -> move one word right
|
||||||
" <Ctrl-Left> | (A) -> scroll left
|
" <Ctrl-Left> | (N) -> move one word left
|
||||||
|
"
|
||||||
|
" <Alt-Up> | (A) -> scroll up
|
||||||
|
" <Alt-Down> | (A) -> scroll down
|
||||||
|
" <Alt-Right> | (A) -> scroll right
|
||||||
|
" <Alt-Left> | (A) -> scroll left
|
||||||
"
|
"
|
||||||
" <Shift-Up> | (N) -> move to the beginning of the document
|
" <Shift-Up> | (N) -> move to the beginning of the document
|
||||||
" <Shift-Down> | (N) -> move to the end of the document
|
" <Shift-Down> | (N) -> move to the end of the document
|
||||||
" <Shift-Right> | (N) -> move to the end of the line
|
" <Shift-Right> | (N) -> move to the end of the line
|
||||||
" <Shift-Left> | (N) -> move to the beginning of the non-whitespace
|
" <Shift-Left> | (N) -> move to the beginning of the non-whitespace
|
||||||
"
|
"
|
||||||
" <Alt+Up> | (V) -> move a block up one line
|
" <Shift+Ctrl+Up> | (V) -> move a block up one line
|
||||||
" <Alt+Down> | (V) -> move a block down one line
|
" <Shift+Ctrl+Down> | (V) -> move a block down one line
|
||||||
" <Alt+Up> | (N) -> move a line up one line
|
" <Shift+Ctrl+Up> | (N) -> move a line up one line
|
||||||
" <Alt+Down> | (N) -> move a line down one line
|
" <Shift+Ctrl+Down> | (N) -> move a line down one line
|
||||||
"
|
"
|
||||||
" <Alt+Left> | (V) -> move a block up a half page
|
" <Alt+Left> | (V) -> move a block up a half page
|
||||||
" <Alt+Right> | (V) -> move a block down a half page
|
" <Alt+Right> | (V) -> move a block down a half page
|
||||||
|
@ -763,30 +768,35 @@
|
||||||
nnoremap _ -
|
nnoremap _ -
|
||||||
|
|
||||||
"map ctrl+direction to shifting the screen in that direction
|
"map ctrl+direction to shifting the screen in that direction
|
||||||
noremap <C-Up> <ScrollWheelUp>
|
nnoremap <C-Up> 4k
|
||||||
nnoremap <C-Up> <ScrollWheelUp>
|
nnoremap <C-Down> 4j
|
||||||
xnoremap <C-Up> <ScrollWheelUp>
|
nnoremap <C-Right> <S-Right>
|
||||||
snoremap <C-Up> <ScrollWheelUp>
|
nnoremap <C-Left> <S-Left>
|
||||||
vnoremap <C-Up> <ScrollWheelUp>
|
|
||||||
inoremap <C-Up> <ScrollWheelUp>
|
noremap <A-Up> <ScrollWheelUp>
|
||||||
noremap <C-Down> <ScrollWheelDown>
|
nnoremap <A-Up> <ScrollWheelUp>
|
||||||
nnoremap <C-Down> <ScrollWheelDown>
|
xnoremap <A-Up> <ScrollWheelUp>
|
||||||
xnoremap <C-Down> <ScrollWheelDown>
|
snoremap <A-Up> <ScrollWheelUp>
|
||||||
snoremap <C-Down> <ScrollWheelDown>
|
vnoremap <A-Up> <ScrollWheelUp>
|
||||||
vnoremap <C-Down> <ScrollWheelDown>
|
inoremap <A-Up> <ScrollWheelUp>
|
||||||
inoremap <C-Down> <ScrollWheelDown>
|
noremap <A-Down> <ScrollWheelDown>
|
||||||
noremap <C-Right> 4zl
|
nnoremap <A-Down> <ScrollWheelDown>
|
||||||
nnoremap <C-Right> 4zl
|
xnoremap <A-Down> <ScrollWheelDown>
|
||||||
xnoremap <C-Right> 4zl
|
snoremap <A-Down> <ScrollWheelDown>
|
||||||
snoremap <C-Right> 4zl
|
vnoremap <A-Down> <ScrollWheelDown>
|
||||||
vnoremap <C-Right> 4zl
|
inoremap <A-Down> <ScrollWheelDown>
|
||||||
inoremap <C-Right> <C-O>4zl
|
noremap <A-Right> 4zl
|
||||||
noremap <C-Left> 4zh
|
nnoremap <A-Right> 4zl
|
||||||
nnoremap <C-Left> 4zh
|
xnoremap <A-Right> 4zl
|
||||||
xnoremap <C-Left> 4zh
|
snoremap <A-Right> 4zl
|
||||||
snoremap <C-Left> 4zh
|
vnoremap <A-Right> 4zl
|
||||||
vnoremap <C-Left> 4zh
|
inoremap <A-Right> <C-O>4zl
|
||||||
inoremap <C-Left> <C-O>4zh
|
noremap <A-Left> 4zh
|
||||||
|
nnoremap <A-Left> 4zh
|
||||||
|
xnoremap <A-Left> 4zh
|
||||||
|
snoremap <A-Left> 4zh
|
||||||
|
vnoremap <A-Left> 4zh
|
||||||
|
inoremap <A-Left> <C-O>4zh
|
||||||
|
|
||||||
"remap keys to scroll to the end in a direction
|
"remap keys to scroll to the end in a direction
|
||||||
nnoremap <S-Up> gg0
|
nnoremap <S-Up> gg0
|
||||||
|
@ -795,20 +805,10 @@
|
||||||
nnoremap <S-Left> ^
|
nnoremap <S-Left> ^
|
||||||
|
|
||||||
"remap alt+up/down to move blocks up/down a line
|
"remap alt+up/down to move blocks up/down a line
|
||||||
vmap <A-Up> <Plug>MoveBlockUp
|
vmap <S-C-Up> <Plug>MoveBlockUp
|
||||||
vmap <A-Down> <Plug>MoveBlockDown
|
vmap <S-C-Down> <Plug>MoveBlockDown
|
||||||
nmap <A-Up> <Plug>MoveLineUp
|
nmap <S-C-Up> <Plug>MoveLineUp
|
||||||
nmap <A-Down> <Plug>MoveLineDown
|
nmap <S-C-Down> <Plug>MoveLineDown
|
||||||
|
|
||||||
"remap alt+left/right/h/l to move blocks up/down a half page
|
|
||||||
vmap <A-Left> <Plug>MoveBlockHalfPageUp
|
|
||||||
vmap <A-Right> <Plug>MoveBlockHalfPageDown
|
|
||||||
nmap <A-Left> <Plug>MoveLineHalfPageUp
|
|
||||||
nmap <A-Right> <Plug>MoveLineHalfPageDown
|
|
||||||
vmap <A-h> <Plug>MoveBlockHalfPageUp
|
|
||||||
vmap <A-l> <Plug>MoveBlockHalfPageDown
|
|
||||||
nmap <A-h> <Plug>MoveLineHalfPageUp
|
|
||||||
nmap <A-l> <Plug>MoveLineHalfPageDown
|
|
||||||
|
|
||||||
"map signify to ]c and [c
|
"map signify to ]c and [c
|
||||||
let g:signify_mapping_next_hunk = ']c'
|
let g:signify_mapping_next_hunk = ']c'
|
||||||
|
|
Loading…
Reference in a new issue