Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created March 20, 2015 07:00
Show Gist options
  • Save Manouchehri/35f7efd7ddee9e3ef67f to your computer and use it in GitHub Desktop.
Save Manouchehri/35f7efd7ddee9e3ef67f to your computer and use it in GitHub Desktop.
.vimrc
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