comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:48859d9c82c5
1 set nocompatible
2 "source $VIMRUNTIME/vimrc_example.vim
3 "source $VIMRUNTIME/mswin.vim
4 "behave mswin
5
6 set nobackup
7 set tabstop=3
8 set shiftwidth=3
9 set backspace=indent,eol,start
10 set expandtab
11 set textwidth=120
12 set number
13 set ruler
14 set history=1000
15 set encoding=utf-8
16
17 " CtrlP related settings
18 set wildignore+=.git\*,.hg\*,.svn\*,*.d,*.dbo,*.o,*.ti
19
20 " This allows % to toggle on if/elsif/else/end, XML tags, & more
21 runtime macros/matchit.vim
22
23 " These two options make /-style searching case-sensitive only if there
24 " is a capital letter in the search expression.
25 set ignorecase
26 set smartcase
27
28 " Sets the terminal title when run in an xterm
29 set title
30
31 " This puts more context around the cursor when scrolling
32 set scrolloff=3
33
34 " let g:netrw_sort_sequence = "[\/]$,*,\.bak$,\.o$,\.info$,\.swp$,\.obj$"
35
36 syntax on
37 filetype on
38 filetype plugin on
39 filetype indent on
40 set hlsearch
41 set incsearch
42
43 " highlight trailing spaces
44 let c_space_errors = 1
45 " let python_space_error_highlight = 1
46
47 colorscheme peaksea2
48
49 " shortcut for word completion in insert mode
50 imap <S-Tab> <C-n>
51
52 " buffer next and previous commands
53 nnoremap <Tab> :bnext<CR>
54 nnoremap <S-Tab> :bprevious<CR>
55
56 " Remove extra trailing spaces
57 nnoremap <F2> :%s/\s\+$//<CR>
58
59 setlocal spell spelllang=en_us
60
61 let mapleader=","
62
63 " ,/ will clear any highlighted search results
64 nmap <silent> ,/ :let @/=""<CR>
65
66 " NERD tree plugin
67 " nmap ,n :NERDTreeToggle<CR>
68 " let g:NERDTreeQuitOnOpen=1