Skip to content

Instantly share code, notes, and snippets.

@david-risney
Last active August 29, 2015 14:04
Show Gist options
  • Save david-risney/c4d7e716cec5077e6211 to your computer and use it in GitHub Desktop.
Save david-risney/c4d7e716cec5077e6211 to your computer and use it in GitHub Desktop.
_vimrc
syntax on
color evening
set ts=4
set sw=4
set expandtab
set ai
set nohls
set incsearch
set nowrap
set sidescroll=5
set listchars+=precedes:<,extends:>
let g:explWinSize=2
let g:explSplitBelow=1
set bs=eol,indent,start
set nobackup
set showcmd
set ruler
set encoding=utf-8
setglobal fileencoding=utf-8
setglobal nobomb
set termencoding=iso-8859-15
set fileencodings=ucs-bom,iso-8859-15,iso-8859-3,utf-8,iso-8859-1
" font name1:option:option:...,name2:option:option:...,name3:...
" for option, b means bold, i is italic, and hXX is height
set guifont=Consolas:h11:b:cANSI
" no longer a thing? set guifontwide=MS_Gothic:h12:b:cANSI
set cindent
" Setup cindent options:
" :0 - 'case' statements line up with 'switch' statements
" l1 - statements in a 'case' indent based on the indentation of the 'case'
" g0 - C++ protection directives line upwith the class declaration
" (1s - extra lines inside an open paren indent 1 tab
set cino=:0,l1,g0,(1s
" Setup cindent key options
" Default except for removing the # behavior (for better perl)
set cinkeys=0{,0},0),:,!^F,o,O,e
let &rtp='~\bin,'.&rtp
" compiler! build
let g:netrw_browse_split = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment