diff --git a/.vimrc b/.vimrc index 10c186f..6e60ea9 100644 --- a/.vimrc +++ b/.vimrc @@ -2,9 +2,13 @@ scriptencoding utf-8 set encoding=utf-8 -" Plugins + +" vundle bundle; not for changing +set nocompatible " Disable vi compatibility +filetype off + set runtimepath+=~/.vim/bundle/vundle/ -call vundle#rc() +call vundle#begin() Bundle 'gmarik/vundle' @@ -22,8 +26,11 @@ Bundle 'tpope/vim-rails' Bundle 'tpope/vim-repeat' Bundle 'tpope/vim-surround' +call vundle#end() +filetype plugin indent on +" end vundle + " Options -set nocompatible " Disable vi compatibility set fileformats=unix,dos " File format prefer unix endings set endofline " Add newlien at end of file set shellslash " Forward slashes @@ -53,6 +60,7 @@ set number set noswapfile " Hope for the best set virtualedit=all " Cursor can go anywhere set scrolloff=3 " Keep cursor from touching edges +set timeoutlen=500 " Don't wait too long (ambiguous leaders) " Make syntax highlighting faster syntax sync minlines=256 set ttyfast @@ -62,14 +70,15 @@ set tabstop=2 set softtabstop=2 set shiftwidth=2 set expandtab +set shiftround " if at odd number spaces, make >> go to next even " Show whitespace markers before cursor in insert mode set list listchars=tab:\ \ ,trail:ยท +" Aliases +command! Q q + " Filetype stuff syntax on -filetype on -filetype plugin on -filetype indent on " Keybinds " ctrl+s for save spam @@ -86,7 +95,7 @@ map vnoremap > >gv vnoremap < c "+ map p "+p map pm :set paste! -" others -" clear search - do not put this comment to the right of ,cs +" clear search map cs :let @/ = "" -map fw :FixWhitespace " indent and return map i mmgg=G`m -map lf :call LargeFileToggle() " reload all buffers map ra :bufdo e! -map s :e ~/Source/ +" this was better when it was :Sexplore... +map s :Vexplore ~/Source/ + +map fw :FixWhitespace +map lf :call LargeFileToggle() map sa :call RenameFile() map se :e ~/.vimrc map st :call SyntaxToggle() @@ -131,7 +141,6 @@ map sz :so ~/.vimrc map ts :sp ~/tool-sharpener.txt " Set style -set t_Co=256 colorscheme vividchalk " special case colors set at end of file via function @@ -194,10 +203,7 @@ function! SetColors() highlight ColorColumn ctermbg=234 highlight IndentGuidesOdd ctermbg=black highlight IndentGuidesEven ctermbg=234 - highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9 endfunction " Needs to come after SetColors definition call SetColors() - -match OverLength /\%81v.*/