Skip to content

Instantly share code, notes, and snippets.

@gbluma
Created January 28, 2011 22:01
Show Gist options
  • Save gbluma/801089 to your computer and use it in GitHub Desktop.
Save gbluma/801089 to your computer and use it in GitHub Desktop.
vimrc
syntax on
filetype on
colorscheme desert
set gfn=Consolas:h10:cANSI
set title
set backspace=start,indent,eol
set number
set smartindent
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set autochdir
set incsearch
set ignorecase
set smartcase
set ls=2
set ruler
set showtabline=2
set formatoptions=qroct
set showcmd
set ls=2
set ruler
set listchars=tab:›\ ,eol:¬
" auto sudo for admin rights (use :w!! to save)
cmap w!! %!sudo tee > /dev/null %
command! W :w
map ,, <C-^>
" kill sounds and visual bell
set visualbell t_vb=
set noeb
au! GuiEnter * set vb t_vb=
map <silent><A-Right> :tabnext<CR>
map <silent><A-Left> :tabprevious<CR>
set guioptions-=T
source $VIMRUNTIME/mswin.vim
behave mswin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment