Skip to content

Instantly share code, notes, and snippets.

@rcmachado
Created January 8, 2010 20:20
Show Gist options
  • Save rcmachado/272372 to your computer and use it in GitHub Desktop.
Save rcmachado/272372 to your computer and use it in GitHub Desktop.
Vim configuration (.vimrc)
" My .vimrc (use with https://github.com/akitaonrails/vimfiles)
"
" Date: 2011-06-22
source ~/.vim/vimrc
colorscheme default
set background=dark
set list
set listchars=tab:▸\ ,eol:¬
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
" Autofix some mistakes
cab W w
cab Wq wq
cab wQ wq
cab WQ wq
cab Q q
" Highlight p/ linhas > 80
" http://vim.wikia.com/wiki/Highlight_long_lines
" Vim >= 7.1.40
au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1)
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment