Created
June 12, 2011 19:15
-
-
Save papajuans/1021892 to your computer and use it in GitHub Desktop.
my 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
" Cobbled together from the internet (mostly from | |
" rtomayko's dotfiles on github: | |
" http://github.com/rtomayko/dotfiles/blob/rtomayko/.vimrc) | |
" ---------------------------------------------------------- | |
" GENERAL | |
" ---------------------------------------------------------- | |
set nocompatible " No vi compatibility | |
set history=1000 " lots of history | |
" Show syntax coloring | |
syntax enable | |
" Set tabstop | |
set tabstop=4 | |
set autoindent | |
set hls | |
set expandtab | |
" Show line numbers | |
set number | |
" Incremental search, ingore case, unless all caps | |
set incsearch | |
set ignorecase | |
set smartcase | |
" Show matching parens | |
" set showmatch | |
" Show current mode | |
set showmode | |
set showcmd | |
" Show current position | |
set ruler | |
" Shut the fuck up | |
set visualbell t_vb= | |
" Set the font? | |
set gfn=Menlo:h14.00 | |
" Set text wrapping | |
set textwidth=100 | |
" ---------------------------------------------------------------------------- | |
" Backups | |
" ---------------------------------------------------------------------------- | |
set nobackup " do not keep backups after close | |
set nowritebackup " do not keep a backup while working | |
set noswapfile " don't keep swp files either | |
set backupdir=$HOME/.vim/backup " store backups under ~/.vim/backup | |
set backupcopy=yes " keep attributes of original file | |
set backupskip=/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/* | |
set directory=~/.vim/swap,~/tmp,. " keep swp files under ~/.vim/swap | |
"------------------------------------------------------- | |
" STATUSBAR | |
" ------------------------------------------------------ | |
set laststatus=2 | |
set statusline= | |
set statusline+=%-3.3n\ " buffer number | |
set statusline+=%f\ " file name | |
set statusline+=%h%m%r%w " flags | |
set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype | |
set statusline+=%{&encoding}, " encoding | |
set statusline+=%{&fileformat}] " file format | |
set statusline+=%= " right align | |
set statusline+=%-10.(%l,%c%V%)\ %<%P " offset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment