vimrc changes

This commit is contained in:
randomuser 2022-08-09 08:31:29 -05:00
parent 2129db63c3
commit 2df2fee5e0
1 changed files with 2 additions and 1 deletions

View File

@ -52,10 +52,11 @@ nnoremap <Leader>fs :Lexplore<CR>
nnoremap <Leader>ke :e ~/.config/nvim/init.vim <CR>ggzR/shortcuts<CR>z<CR>
" jk to escape insert mode
inoremap jk <esc>
inoremap <esc> <esc>:echo "use jk instead!"<CR>2gsi
" go back to the previous error, then correct
inoremap <C-d> <c-g>u<Esc>[s1z=`]a<c-g>u
inoremap qp <c-g>u<Esc>[s1z=`]a<c-g>u
inoremap <C-s> <Esc>zgi
inoremap qo <Esc>zgi
nnoremap <C-s> zg
tnoremap <Esc> <C-\><C-n>
nnoremap <Leader>wl <C-w>\<