Skip to content

Instantly share code, notes, and snippets.

@hellais
Created May 22, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellais/2769532 to your computer and use it in GitHub Desktop.
Save hellais/2769532 to your computer and use it in GitHub Desktop.
vimrc
filetype off
set foldmethod=indent
set foldlevel=99
set ruler
set tabstop=4
set shiftwidth=4
set expandtab
set pastetoggle=<F2>
set lbr
set smarttab
set ai
set autoindent
set wrap
set hlsearch " highlight search
"set number
syntax on
" map F8 to taglist
nnoremap <silent> <F8> :TlistToggle<CR>
" Status line
set laststatus=2
set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%h\ \ \ Line:\ %l/%L:%c
" Save backup files to a specific dir
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
" tab completion stuff
set wildmenu
set wildmode=list:longest,full
set textwidth=79
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal g'\"" | endif
endif
" Filetype based indent rules
if has("autocmd")
filetype indent plugin on
endif
" Mouse support
set mouse=a
set clipboard=unnamed
" paste support with love
" set paste
set title
set wildignore=*.pyc,*.o
" remove trailing spaces
autocmd BufWritePre * :%s/\s\+$//e
set incsearch
colorscheme molokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment