Add insert mode remaps for autoclosing brackets

This commit is contained in:
2021-09-20 21:45:09 +03:00
parent 6bee14bffe
commit e53d1254f6

9
.vimrc
View File

@@ -81,3 +81,12 @@ nnoremap <C-j> :m .+1<CR>==
nnoremap <C-k> :m .-2<CR>==
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
" Remaps to automatically closing brackets and other stuff
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O