-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
executable file
·142 lines (113 loc) · 3.45 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""$source: $
""$Revision: 1.5 $
""$Date: 2007/08/24 17:34:45 $
""$Author: chrisar $
""
""Purpose: This is the GVim configuration file
""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
execute pathogen#infect()
syn on
set nocompatible
"Add for case insensitive search
set ignorecase smartcase
"Show cursor position all the time
set ruler
"set cursorline
"hi CursorLine term=bold cterm=bold guibg=Grey40
" set the X11 font to use
" set guifont=-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
"set guifont=9x15
" change dir to whatever file i'm working on
set autochdir
" Make command line two lines high
set ch=2
" When <TAB> is hit, put 3 spaces in
set noexpandtab
set tabstop=3
set shiftwidth=3
set hlsearch
" Match up braces, parenthesis etc - hit <SHIFT> %
set showmatch
hi Search guibg=Red
hi Search guifg=Black
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" Set Highlight colors to not suck in dark mode
hi DiffAdd ctermfg=NONE ctermbg=Green
hi DiffChange ctermfg=NONE ctermbg=NONE
hi DiffDelete ctermfg=LightBlue ctermbg=Red
hi DiffText ctermfg=Yellow ctermbg=Red
"line numbes
set nu
highlight Normal guibg=grey13 guifg=white
highlight LineNr guifg=grey43
command! -nargs=1 Find vimgrepadd <q-args> % | vert copen
command! E execute "NERDTree"
command! Shell execute "ConqueTerm tcsh"
command! Tagbar execute "TagbarToggle"
nmap <F8> :TagbarToggle<CR>
let g:tagbar_type_vhdl = {
\ 'ctagstype': 'vhdl',
\ 'kinds' : [
\'d:prototypes',
\'b:package bodies',
\'e:entities',
\'a:architectures',
\'t:types',
\'p:processes',
\'f:functions',
\'r:procedures',
\'c:constants',
\'T:subtypes',
\'r:records',
\'C:components',
\'P:packages',
\'l:locals'
\]
\}
set backspace=indent,eol,start
filetype plugin indent on
filetype indent on
" The next is your tab stop. Lot of people like to keep it 4.
set sw=2
set smarttab
"unhighlight on esc
nnoremap <esc> :noh<return><esc>
" This is for the multiple marking
let g:mwDefaultHighlightingPalette = 'extended'
let g:mwHistAdd = '/@'
let g:mwAutoSaveMarks = 0
nmap <Leader>M <Plug>MarkToggle
nmap <Leader>N <Plug>MarkAllClear
nmap <F3> <C-\>s!
"vmap <C-c> "+yi
"vmap <C-x> "+c
"vmap <C-v> c<ESC>"+p
"imap <C-v> <C-r><C-o>+
"syntastic stuff
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_open = 1
"let g:syntastic_check_on_wq = 1
"let g:syntastic_c_include_dirs = ['/proj/petalinux/petalinux-v2015.4_daily_latest/petalinux-v2015.4-final/components/linux-kernel/xlnx-4.0/include']
"let g:syntastic_c_compiler = /scratch/xilinx_tools/SDK/2016.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc
"highlight SyntasticErrorSign guifg=white guibg=red
"highlight SyntasticErrorLine guibg=#2f0000
nnoremap <silent> <ESC>OA <UP>
nnoremap <silent> <ESC>OB <DOWN>
nnoremap <silent> <ESC>OC <RIGHT>
nnoremap <silent> <ESC>OD <LEFT>
inoremap <silent> <ESC>OA <UP>
inoremap <silent> <ESC>OB <DOWN>
inoremap <silent> <ESC>OC <RIGHT>
inoremap <silent> <ESC>OD <LEFT>
" Map hex code 0x4 (Ctrl+D) to act as the delete key in normal and insert modes
nnoremap <C-d> x
inoremap <C-d> <C-o>x