.vimrc -------------------------------------------------------- filetype on "Automatically detect file types set nocompatible "We don't want vi compatibility " Add recently added projects menu (project plugin) set viminfo^=! " Minibuffer Explorer Settings let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 " alt+n or alt+p to navigate between entries in QuickFix map :cp map :cn " Change which file opens after executing :Rails command let g:rails_default_file='config/database.yml' syntax enable set guifont=DejaVu\ Sans\ Mono\ 8 "set a nice font set clipboard+=unnamed "Yanks go on clipboard instead set history=256 "Number of things to remember in history set autowrite "Writes on make/shell commands set ruler "Ruler on set timeoutlen=250 "Time to wait after ESC (default causes an annoying delay) colorscheme koehler " Formatting (some of these are for coding in C and C++) "set guioptions= "Turns off the menus, toolbars, and scrollbars winpos 60 10 set columns=120 set lines=40 set nu set ts=2 "Tabs are 2 spaces set bs=2 "Backspace over everything in insert mode set shiftwidth=2 "Tabs under smartindent set nocp incsearch set cinoptions=:0,p0,t0 set cinwords=if,else,while,do,for,switch,case set formatoptions=tcqr set cindent set autoindent set smarttab set expandtab " Visual set showmatch "Show matching brackets set mat=5 "Bracket blinking set novisualbell "No blinking set noerrorbells "No noise set laststatus=2 "Always show status line " gvim specific set mousehide "Hide mouse after chars typed set mouse=a "Mouse in all modes :command -bar -nargs=1 OpenURL :!sensible-browser " Backups & Files set backup "Enable creation of backup file set backupdir=~/.vim/backups set directory=~/.vim/tmp " NERDTree options "let NERDChristmasTree=1 "let NERDTreeShowFiles=1 "let NERDTreeShowHidden=1 map n :execute 'NERDTreeToggle ' . getcwd() .gvimrc ------------------------------------------------------------- colorscheme vividchalk