Created
May 22, 2012 14:50
-
-
Save hellais/2769532 to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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