This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" How to use: append below code into your ~/.vimrc file | |
inoremap ( ()<LEFT> " ( -> () | |
inoremap [ []<LEFT> " [ -> [] | |
inoremap { {}<LEFT> " { -> {} | |
" shift right when input ) and current char is ) | |
function! RemoveNextDoubleChar(char) | |
let next_char = getline(".")[col(".")] " get current char | |
if a:char == next_char |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |