map w :w map wq :wq map Wq :wq map :Wq :wq map qq :q! " 'jk' to escape insert imap jk nnoremap i imap " bash if statement autocmd FileType bash,script,sh inoremap ;i if;then0ifi2kf;i autocmd FileType bash,script,sh inoremap ;w while;do0idone2kf;i autocmd FileType bash,script,sh inoremap ;f foriin;do0idone2kf;i " Smart Quotes inoremap ' strpart(getline('.'), col('.')-1, 1) == "\'" ? "\" : "\'\'\" inoremap ' ''''''O inoremap '' ' inoremap " strpart(getline('.'), col('.')-1, 1) == "\"" ? "\" : "\"\"\" inoremap " """"""O inoremap "" " " Smart Parens inoremap ) strpart(getline('.'), col('.')-1, 1) == ")" ? "\" : ")" inoremap ( () inoremap ( ()O inoremap (( ( inoremap () () " Smart Braces inoremap } strpart(getline('.'), col('.')-1, 1) == "}" ? "\" : "}" inoremap { {} inoremap { {}O inoremap {{ { inoremap {} {} " Smart Brackets inoremap ] strpart(getline('.'), col('.')-1, 1) == "]" ? "\" : "]" inoremap [ [] inoremap [ []O inoremap [[ [ inoremap [] [] " Smart Brackets inoremap > strpart(getline('.'), col('.')-1, 1) == ">" ? "\" : ">" inoremap < <> inoremap inoremap << < inoremap <> <>