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