switch tabbing on common, add some more things to nvim

This commit is contained in:
Anish L 2022-02-26 01:58:16 +10:00
parent 76eb03211c
commit c19a9a5705
2 changed files with 95 additions and 71 deletions

View file

@ -192,15 +192,39 @@ in
map <leader>q :wq<CR> map <leader>q :wq<CR>
map <leader>r :RainbowParenthesesToggleAll<CR> map <leader>r :RainbowParenthesesToggleAll<CR>
map <leader><BS> :noh<CR> map <leader><BS> :noh<CR>
nnoremap Y y$
" center moving
nnoremap n nzzzv
nnoremap N Nzzzv
nnoremap J mzJ'z
" undo points
inoremap , ,<c-g>u
inoremap . .<c-g>u
inoremap ! !<c-g>u
inoremap ? ?<c-g>u
inoremap ( (<c-g>u
inoremap ) )<c-g>u
inoremap [ [<c-g>u
inoremap ] ]<c-g>u
inoremap { {<c-g>u
inoremap } }<c-g>u
" moving text
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '>-2<CR>gv=gv
inoremap <c-j> <esc>:m .+1<CR>==
inoremap <c-k> <esc>:m .-2<CR>==
nnoremap <leader>j <esc>:m .+1<CR>==
nnoremap <leader>k <esc>:m .-2<CR>==
" git " git
nmap <leader>gd :SignifyDiff<CR> nmap <leader>gd :SignifyDiff<CR>
map <leader>ghu :SignifyHunkUndo<CR> map <leader>ghu :SignifyHunkUndo<CR>
nmap <leader>gl :SignifyList<CR> nmap <leader>gl :SignifyList<CR>
nnoremap <leader>ga :G fetch --all
nmap <leader>gs :G<CR> nmap <leader>gs :G<CR>
nmap <leader>gh :diffget //3 nmap <leader>gh :diffget //3
nmap <leader>gl :diffget //2 nmap <leader>gl :diffget //2
nmap <leader>gc :GChecout<CR> nmap <leader>gc :GCheckout<CR>
" kitaab " kitaab
map <leader>zs :ZettelSearch<CR> map <leader>zs :ZettelSearch<CR>