Compare commits

..

No commits in common. "b95d4d487baf74fb4cd92010b68ffd9d93d4172e" and "dba8520b56df2cf10e4d7b75db5ae1cb8d3e55a1" have entirely different histories.

3 changed files with 41 additions and 56 deletions

View file

@ -109,7 +109,7 @@ A more complete list of key bindings exists at the top of `vim/config/keyboard.v
### Complete Reference ### Complete Reference
For a complete list of mappings specific to **darkcloud-nvimconfig**, check the list in the comments at the top of [vim/config/keyboard.vim](https://github.com/prurigro/darkcloud-nvimconfig/blob/master/vim/config/keyboard.vim) and the various plugin configs. For a complete list of mappings specific to **darkcloud-nvimconfig**, check the list in the comments at the top of [vim/config/keyboard.vim](https://github.com/prurigro/darkcloud-nvimconfig/blob/master/vim/config/keyboard.vim)
## Plugins ## Plugins

View file

@ -123,24 +123,24 @@
" "
" <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-k> | (N) -> move four lines up
" <Ctrl-j> | (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
" <Ctrl-l> | (N) -> move one word right
" <Ctrl-h> | (N) -> move one word left
" "
" <Alt-k> | (A) -> move the screen up " <Alt-Up> | (A) -> move the screen up
" <Alt-j> | (A) -> move the screen down " <Alt-Down> | (A) -> move the screen down
" <Alt-l> | (A) -> move the screen to the right " <Alt-Right> | (A) -> move the screen to the right
" <Alt-h> | (A) -> move the screen to the left " <Alt-Left> | (A) -> move the screen to the 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
" "
" <Shift-Ctrl-Up> | (V) -> vim-move: move a block up one line
" <Shift-Ctrl-Down> | (V) -> vim-move: move a block down one line
" <Shift-Ctrl-Up> | (N) -> vim-move: move a line up one line
" <Shift-Ctrl-Down> | (N) -> vim-move: move a line down one line
"
" ]g | (N) -> next difference (vimdiff/signify) " ]g | (N) -> next difference (vimdiff/signify)
" [g | (N) -> previous difference (vimdiff/signify) " [g | (N) -> previous difference (vimdiff/signify)
" >> | (N) -> next difference (vimdiff/signify) " >> | (N) -> next difference (vimdiff/signify)
@ -489,43 +489,36 @@
nnoremap = + nnoremap = +
nnoremap _ - nnoremap _ -
"map ctrl+up/down to moving the cursor up and down by 4 lines "map ctrl+direction to shifting the screen in that direction
nnoremap <C-Up> 4k nnoremap <C-Up> 4k
nnoremap <C-Down> 4j nnoremap <C-Down> 4j
nnoremap <C-k> 4k
nnoremap <C-j> 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>
nnoremap <C-l> <S-Right>
nnoremap <C-h> <S-Left>
"map alt+direction to moving the viewport in that direction noremap <A-Up> <ScrollWheelUp>
noremap <A-k> <ScrollWheelUp> nnoremap <A-Up> <ScrollWheelUp>
nnoremap <A-k> <ScrollWheelUp> xnoremap <A-Up> <ScrollWheelUp>
xnoremap <A-k> <ScrollWheelUp> snoremap <A-Up> <ScrollWheelUp>
snoremap <A-k> <ScrollWheelUp> vnoremap <A-Up> <ScrollWheelUp>
vnoremap <A-k> <ScrollWheelUp> inoremap <A-Up> <ScrollWheelUp>
inoremap <A-k> <ScrollWheelUp> noremap <A-Down> <ScrollWheelDown>
noremap <A-j> <ScrollWheelDown> nnoremap <A-Down> <ScrollWheelDown>
nnoremap <A-j> <ScrollWheelDown> xnoremap <A-Down> <ScrollWheelDown>
xnoremap <A-j> <ScrollWheelDown> snoremap <A-Down> <ScrollWheelDown>
snoremap <A-j> <ScrollWheelDown> vnoremap <A-Down> <ScrollWheelDown>
vnoremap <A-j> <ScrollWheelDown> inoremap <A-Down> <ScrollWheelDown>
inoremap <A-j> <ScrollWheelDown> noremap <A-Right> 4zl
noremap <A-l> 4zl nnoremap <A-Right> 4zl
nnoremap <A-l> 4zl xnoremap <A-Right> 4zl
xnoremap <A-l> 4zl snoremap <A-Right> 4zl
snoremap <A-l> 4zl vnoremap <A-Right> 4zl
vnoremap <A-l> 4zl inoremap <A-Right> <C-O>4zl
inoremap <A-l> <C-O>4zl noremap <A-Left> 4zh
noremap <A-h> 4zh nnoremap <A-Left> 4zh
nnoremap <A-h> 4zh xnoremap <A-Left> 4zh
xnoremap <A-h> 4zh snoremap <A-Left> 4zh
snoremap <A-h> 4zh vnoremap <A-Left> 4zh
vnoremap <A-h> 4zh inoremap <A-Left> <C-O>4zh
inoremap <A-h> <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
@ -533,6 +526,12 @@
nnoremap <S-Right> $ nnoremap <S-Right> $
nnoremap <S-Left> ^ nnoremap <S-Left> ^
"remap shift+ctrl+up/down to move blocks up/down a line with vim-move
vmap <S-C-Up> <Plug>MoveBlockUp
vmap <S-C-Down> <Plug>MoveBlockDown
nmap <S-C-Up> <Plug>MoveLineUp
nmap <S-C-Down> <Plug>MoveLineDown
"move to next/previous difference (vimdiff/signify) "move to next/previous difference (vimdiff/signify)
nmap ]g <plug>(signify-next-hunk) nmap ]g <plug>(signify-next-hunk)
nmap [g <plug>(signify-prev-hunk) nmap [g <plug>(signify-prev-hunk)

View file

@ -1,14 +0,0 @@
"don't use default mappings
let g:move_map_keys = 0
"visual mode mappings
vmap <S-C-Up> <Plug>MoveBlockUp
vmap <S-C-Down> <Plug>MoveBlockDown
vmap <S-C-Right> <Plug>MoveBlockRight
vmap <S-C-Left> <Plug>MoveBlockLeft
"normal mode mappings
nmap <S-C-Up> <Plug>MoveLineUp
nmap <S-C-Down> <Plug>MoveLineDown
nmap <S-C-Right> <Plug>MoveCharRight
nmap <S-C-Left> <Plug>MoveCharLeft