Skip to content

Instantly share code, notes, and snippets.

@statianzo
Created May 28, 2010 16:23
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save statianzo/417372 to your computer and use it in GitHub Desktop.
syntax on
colorscheme wombat
filetype plugin indent on
set nocompatible " We don't want vi compatibility.
map th :tabfirst<CR>
map tj :tabnext<CR>
map tk :tabprev<CR>
map tl :tablast<CR>
map tt :tabedit<Space>
map tn :tabnext<Space>
map tm :tabm<Space>
" " Change which file opens after executing :Rails command
let g:rails_default_file='config/database.yml'
syntax enable
set cf " Enable error files & error jumping.
set clipboard+=unnamed " Yanks go on clipboard instead.
set history=256 " Number of things to remember in history.
set autowrite " Writes on make/shell commands
set ruler " Ruler on
set nu " Line numbers on
set nowrap " Line wrapping off
set timeoutlen=250 " Time to wait after ESC (default causes an annoying delay)
" colorscheme vividchalk " Uncomment this to set a default theme
"
" " Formatting (some of these are for coding in C and C++)
set ts=2 " Tabs are 2 spaces
set bs=2 " Backspace over everything in insert mode
set shiftwidth=2 " Tabs under smart indent
set nocp incsearch
set hlsearch
set cinoptions=:0,p0,t0
set cinwords=if,else,while,do,for,switch,case
set formatoptions=tcqr
set cindent
set autoindent
set smarttab
set expandtab
" " Visual
set showmatch " Show matching brackets.
set mat=5 " Bracket blinking.
set list
" " Show $ at end of line and trailing space as ~
set lcs=tab:\ \
set novisualbell " No blinking .
set noerrorbells " No noise.
set laststatus=0 " Always show status line.
set pastetoggle=<F2>
"Remove menu and toolbar
set guioptions -=m
set guioptions -=T
set guioptions -=r
set guifont=Anonymous_Pro:h12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment