Decentralize nvim config

This commit is contained in:
ItsDrike 2021-07-23 18:08:03 +02:00
parent 5e0fcc415b
commit cc74d65b0a
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
9 changed files with 192 additions and 140 deletions

View file

@ -0,0 +1,32 @@
" Remap splits navigation to just CTRL + hjkl
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Make adjusting split sizes a bit more friendly
noremap <silent> <C-Left> :vertical resize +3<CR>
noremap <silent> <C-Right> :vertical resize -3<CR>
noremap <silent> <C-Up> :resize +3<CR>
noremap <silent> <C-Down> :resize -3<CR>
" Spell-check set to <leader>o, 'o' for 'orthography'
map <leader>o :setlocal spell! spelllang=en_US<CR>
" Stop search highlight (until next search)
map <silent> <esc> :noh<CR>
" System clipboard interactions
map <C-c> "+y
vnoremap <C-v> "+p
" Unmap arrow keys in normal mode to remove bad habits
nnoremap <Down> <nop>
nnoremap <Left> <nop>
nnoremap <Right> <nop>
nnoremap <Up> <nop>
" Use shift to move 10 lines up/down quickly
noremap <silent> K 10k
noremap <silent> J 10j