nvim: keymappings: Miscellaneous key mappings

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-11 13:50:54 +05:30
parent 01eb979b2c
commit 1a061f6ec8

View file

@ -170,3 +170,11 @@ nnoremap <A-]> :sp <CR>:exec("tag ".expand("<cword>"))<CR>
noremap 0 ^ noremap 0 ^
" Just in case you need to go to the very beginning of a line " Just in case you need to go to the very beginning of a line
noremap ^ 0 noremap ^ 0
" Make j and k move to the next row, not file line
nnoremap j gj
nnoremap k gk
" Make dot work on visually selected lines
vnoremap . :norm.<CR>
" Go to the last file we changed
nnoremap <BS> <C-^>