Commit bc6e46d8 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add Vim auto-insert closing characters

parent e68310bc
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
" Automatically insert the closing character for various enclosing structures
" while in insert mode.

inoremap (     ()<esc>i
inoremap (<CR> (<CR>)<esc>O
inoremap [     []<esc>i
inoremap [<CR> [<CR>]<esc>O
inoremap {     {}<esc>i
inoremap {<CR> {<CR>}<esc>O
inoremap '     ''<esc>i
inoremap '<CR> '<CR>'<esc>O
inoremap "     ""<esc>i
inoremap "<CR> "<CR>"<esc>O
inoremap `     ``<esc>i
inoremap `<CR> `<CR>`<esc>O