Created
March 20, 2015 07:00
-
-
Save Manouchehri/35f7efd7ddee9e3ef67f to your computer and use it in GitHub Desktop.
.vimrc
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
syntax on | |
set background=dark | |
"let g:solarized_termcolors=256 | |
colo solarized | |
"colo desert | |
set number | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set bs=2 | |
"set noswapfile | |
"set nobackup | |
"set nowb | |
set smarttab | |
set ai | |
filetype plugin indent on | |
inoremap { {}<Left> | |
inoremap {<CR> {<CR>}<Esc>O | |
inoremap {{ { | |
inoremap {} {} | |
inoremap ( ()<Left> | |
inoremap <expr> ) strpart(getline('.'), col('.')-1, 1) == ")" ? "\<Right>" : ")" | |
vmap j gj | |
vmap k gk | |
nmap j gj | |
nmap k gk | |
set guifont=Consolas:h16:cANSI | |
" Force saving files that require root permission | |
cmap w!! w !sudo tee > /dev/null % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment