Created
June 19, 2012 08:08
-
-
Save th3james/2952921 to your computer and use it in GitHub Desktop.
vim_rc 06/12
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
" Somewhat copied from https://github.com/spf13/spf13-vim/blob/master/.vimrc | |
set nocompatible " We're running Vim, not Vi! | |
call pathogen#runtime_append_all_bundles() " add pathogen | |
" UI stuff | |
syntax on " Enable syntax highlighting | |
set background=dark " Assume a dark background | |
color ir_black | |
set backspace=indent,eol,start " backspace for dummys | |
set linespace=0 " No extra spaces between rows | |
set nu " Line numbers on | |
set showmatch " show matching brackets/parenthesis | |
set incsearch " find as you type search | |
set hlsearch " highlight search terms | |
set winminheight=0 " windows can be 0 line high | |
set ignorecase " case insensitive search | |
set smartcase " case sensitive when uc present | |
set wildmenu " show list instead of just completing | |
set wildmode=list:longest,full " command <Tab> completion, list matches, then longest common part, then all. | |
set whichwrap=b,s,h,l,<,>,[,] " backspace and cursor keys wrap to | |
set scrolljump=5 " lines to scroll when cursor leaves screen | |
set scrolloff=3 " minimum lines to keep above and below cursor | |
set foldenable " auto fold code | |
set gdefault " the /g flag on :s substitutions by default | |
filetype plugin indent on " Enable filetype-specific indenting and plugins | |
set spell " spell checking on | |
set undofile " Persistent undo (across files) | |
" Load matchit (% to bounce from do to end, etc.) | |
runtime! macros/matchit.vim | |
augroup myfiletypes | |
" Clear old autocmds in group | |
autocmd! | |
" autoindent with two spaces, always expand tabs | |
autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et | |
augroup END | |
set hidden " allow hiding buffers with changes | |
set autoindent | |
set smarttab | |
set expandtab | |
set ai sw=2 sts=2 et | |
set omnifunc=csscomplete#CompleteCSS | |
set gfn=DejaVu\ Sans\ Mono:h13 | |
set t_Co=256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment