bgneal@0: set nocompatible bgneal@0: "source $VIMRUNTIME/vimrc_example.vim bgneal@0: "source $VIMRUNTIME/mswin.vim bgneal@0: "behave mswin bgneal@0: bgneal@0: set nobackup bgneal@0: set tabstop=3 bgneal@0: set shiftwidth=3 bgneal@0: set backspace=indent,eol,start bgneal@0: set expandtab bgneal@0: set textwidth=120 bgneal@0: set number bgneal@0: set ruler bgneal@0: set history=1000 bgneal@0: set encoding=utf-8 bgneal@0: bgneal@0: " CtrlP related settings bgneal@0: set wildignore+=.git\*,.hg\*,.svn\*,*.d,*.dbo,*.o,*.ti bgneal@0: bgneal@0: " This allows % to toggle on if/elsif/else/end, XML tags, & more bgneal@0: runtime macros/matchit.vim bgneal@0: bgneal@0: " These two options make /-style searching case-sensitive only if there bgneal@0: " is a capital letter in the search expression. bgneal@0: set ignorecase bgneal@0: set smartcase bgneal@0: bgneal@0: " Sets the terminal title when run in an xterm bgneal@0: set title bgneal@0: bgneal@0: " This puts more context around the cursor when scrolling bgneal@0: set scrolloff=3 bgneal@0: bgneal@0: " let g:netrw_sort_sequence = "[\/]$,*,\.bak$,\.o$,\.info$,\.swp$,\.obj$" bgneal@0: bgneal@0: syntax on bgneal@0: filetype on bgneal@0: filetype plugin on bgneal@0: filetype indent on bgneal@0: set hlsearch bgneal@0: set incsearch bgneal@0: bgneal@0: " highlight trailing spaces bgneal@0: let c_space_errors = 1 bgneal@0: " let python_space_error_highlight = 1 bgneal@0: bgneal@2: set background=dark bgneal@2: colorscheme peaksea2 bgneal@2: " colorscheme Dark bgneal@0: bgneal@0: " shortcut for word completion in insert mode bgneal@0: imap bgneal@0: bgneal@0: " buffer next and previous commands bgneal@0: nnoremap :bnext bgneal@0: nnoremap :bprevious bgneal@0: bgneal@0: " Remove extra trailing spaces bgneal@0: nnoremap :%s/\s\+$// bgneal@0: bgneal@0: setlocal spell spelllang=en_us bgneal@0: bgneal@0: let mapleader="," bgneal@0: bgneal@0: " ,/ will clear any highlighted search results bgneal@0: nmap ,/ :let @/="" bgneal@0: bgneal@0: " NERD tree plugin bgneal@0: " nmap ,n :NERDTreeToggle bgneal@0: " let g:NERDTreeQuitOnOpen=1