-
Notifications
You must be signed in to change notification settings - Fork 0
/
_vimrc
108 lines (81 loc) · 3.01 KB
/
_vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
set nocompatible " Use gVim defaults
" set tw=80 tw to specify a default text width
set fo=tcrq " fo to specify default formatoptions
" t auto-wraps text using textwidth
" c auto-wraps comments using textwidth
" r auto-inserts the current comment leader
" q allows formatting of comments
" allow backspacing over everything in insert mode
set backspace=2
" Set font
set guifont=ProggyClean
" Switch off tool bar
set guioptions-=T
set guioptions+=a
" Set up tabs of 4 & sensible C indentation
set tabstop=4
set shiftwidth=4
set cinoptions=>s,e0,n0,f0,{0,}0,^0,:s,=s,ps,t0,c3,+s,(2s,us,)20,*30,gs,hs
set nobackup
set expandtab " Tabs are expanded to spaces
source $VIMRUNTIME/vimrc_example.vim
" source $VIMRUNTIME/mswin.vim
" behave mswin
set path=**
" colorscheme blue
colorscheme desert
set clipboard=unnamed
" set selectmode=mouse
set mouse=a
" Set up search path for tags
set tags=./tags,tags,../tags,../../tags,../../../tags,../../../../tags
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 0
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
set ignorecase
set smartcase
" Sensible setup for tabbing (none in python, tabs in everything else)
autocmd FileType * set tabstop=4|set shiftwidth=4|set noexpandtab
autocmd FileType xml set tabstop=2|set shiftwidth=2|set expandtab
autocmd FileType cs set tabstop=4|set shiftwidth=4|set expandtab
autocmd FileType build set tabstop=2|set shiftwidth=2|set expandtab
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
" Set up horizontal line wrapping (off) and scroling
set nowrap
set sidescrolloff=1
set sidescroll=1
set virtualedit=all
map <C-c> "+y<CR>
set makeprg=D:\fifa09\nant.bat\ -masterconfigfile:../../../../masterconfig.xml\ -D:userenderware=true\ -D:config=xenon-vc-debug
" give a list of reaults for competion
set wildmode=list:longest
" Use relative numbers or just normal line numbers
" set number
set relativenumber
" http://vim.wikia.com/wiki/Page_up/down_and_keep_cursor_position
nnoremap <silent> <PageUp> <C-U><C-U>
vnoremap <silent> <PageUp> <C-U><C-U>
inoremap <silent> <PageUp> <C-\><C-O><C-U><C-\><C-O><C-U>
nnoremap <silent> <PageDown> <C-D><C-D>
vnoremap <silent> <PageDown> <C-D><C-D>
inoremap <silent> <PageDown> <C-\><C-O><C-D><C-\><C-O><C-D>
let mapleader = ","
map <F8> <Esc>:setlocal spell spelllang=en_us<CR>
map <F9> <Esc>:setlocal nospell<CR>
"turn space tab drawing on a off
map <F10> :set list<CR>
map <F11> :set list!<CR>
" f12 to view for yank buffer buffer
nnoremap <silent> <F12> :YRShow<CR>
"
nnoremap <F2> :NERDTreeToggle<cr>
"#nnoremap <leader>d :NERDTreeToggle<cr>
" show more command in history.
set history=1000
" Auto-backup files and .swp files don't go to pwd
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" try to use more very magic as I know perl regex much better then vims.
map / /\v
map ? ?\v