diff vim/.vimrc @ 0:48859d9c82c5

Initial commit, based on settings used at work (minus NERD tree & some tagging plugins).
author Brian Neal <bgneal@gmail.com>
date Tue, 03 Jan 2012 20:53:13 -0600
parents
children 67f01a4cac4c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/.vimrc	Tue Jan 03 20:53:13 2012 -0600
@@ -0,0 +1,68 @@
+set nocompatible
+"source $VIMRUNTIME/vimrc_example.vim
+"source $VIMRUNTIME/mswin.vim
+"behave mswin
+
+set nobackup
+set tabstop=3
+set shiftwidth=3
+set backspace=indent,eol,start
+set expandtab
+set textwidth=120
+set number
+set ruler
+set history=1000
+set encoding=utf-8
+
+" CtrlP related settings
+set wildignore+=.git\*,.hg\*,.svn\*,*.d,*.dbo,*.o,*.ti
+
+" This allows % to toggle on if/elsif/else/end, XML tags, & more
+runtime macros/matchit.vim
+
+" These two options make /-style searching case-sensitive only if there
+" is a capital letter in the search expression.
+set ignorecase
+set smartcase
+
+" Sets the terminal title when run in an xterm
+set title
+
+" This puts more context around the cursor when scrolling
+set scrolloff=3
+
+" let g:netrw_sort_sequence = "[\/]$,*,\.bak$,\.o$,\.info$,\.swp$,\.obj$"
+
+syntax on
+filetype on
+filetype plugin on
+filetype indent on
+set hlsearch
+set incsearch
+
+" highlight trailing spaces
+let c_space_errors = 1
+" let python_space_error_highlight = 1
+
+colorscheme peaksea2
+
+" shortcut for word completion in insert mode
+imap <S-Tab> <C-n>
+
+" buffer next and previous commands
+nnoremap <Tab> :bnext<CR>
+nnoremap <S-Tab> :bprevious<CR>
+
+" Remove extra trailing spaces
+nnoremap <F2> :%s/\s\+$//<CR>
+
+setlocal spell spelllang=en_us
+
+let mapleader=","
+
+" ,/ will clear any highlighted search results
+nmap <silent> ,/ :let @/=""<CR>
+
+" NERD tree plugin
+" nmap ,n :NERDTreeToggle<CR>
+" let g:NERDTreeQuitOnOpen=1