Skip to content

Instantly share code, notes, and snippets.

@rubiii
Created September 29, 2010 09:58
Show Gist options
  • Save rubiii/602514 to your computer and use it in GitHub Desktop.
Save rubiii/602514 to your computer and use it in GitHub Desktop.
syntax on
set nocompatible " It's VIM
" Width and height
set lines=87
set columns=145
" Environment
set history=200 " Set history to 200
set undolevels=1000 " Set undos to 1000
set autoread " Watch for file changes
set ttyfast " We have a fast terminal
set wildmenu " Menu has tab completion
set showcmd " Show command in status line
" Turn of error bells
set noerrorbells
set visualbell
set t_vb=
" Backup and swap
set nobackup " Just don't backup
set nowritebackup " No write backups
set noswapfile " And no swap files
" Filetypes
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
set listchars=tab:▸\ ,eol:¬ " Use TextMate symbols for tabstops and EOLs
" Location
set ruler " Show the line number on the bar
set number " Line numbers
set cul " Highlight current line
" Theme
colorscheme twilight " Loving it
" Typing
set autoindent " Who doesn't like autoindent?
set smartcase " Do smart case matching
set showmatch " Show matching brackets
set ts=2 sts=2 sw=2 expandtab " Tabs and spaces
" Search
set incsearch " Incremental search
set ignorecase " Search ignoring case
set hlsearch " Highlight the search
set showmatch " Show matching bracket
" Autocmd
autocmd VimEnter * NERDTree " Open NERDTree on startup
autocmd BufEnter * NERDTreeMirror " Open NERDTree in every tab
" Mappings
map <F2> :FufFile<Enter> " FuzzySearch
map <F3> :NERDTreeToggle<Enter> " NerdTree
inoremap jj <Esc> " Remap jj to escape in insert mode
" nnoremap JJJJ <Nop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment