Created
December 16, 2011 15:14
-
-
Save netikular/1486415 to your computer and use it in GitHub Desktop.
Ever evolving .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
syntax on " Enable syntax highlighting | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
set nocompatible " We're running Vim, not Vi! | |
color slate | |
"some sane indentation | |
set sw=2 | |
set ts=2 | |
set expandtab | |
set nu " who can code with out them | |
set autoindent "turned on incase there is no file type indent | |
nmap <Leader>T :CommandTFlush<CR> | |
"Kill the scroll bars | |
set go-=r | |
set go-=L | |
"Set up code folding | |
au FileType eruby setlocal foldmethod=indent | |
let g:xml_syntax_folding=1 | |
au FileType xml setlocal foldmethod=syntax | |
let ruby_fold=1 | |
let ruby_no_comment_fold = 1 | |
au FileType rb setlocal foldmethod=syntax | |
au BufRead,BufNewFile *.ejs setfiletype html | |
set wildignore+=*.o,*.obj,.git,**/public/assets/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment