Add insert mode remaps for autoclosing brackets
This commit is contained in:
9
.vimrc
9
.vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user