-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
54 lines (52 loc) · 1.2 KB
/
vimrc
File metadata and controls
54 lines (52 loc) · 1.2 KB
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
if has("gui_running")
set background=light
else
set background=dark
endif
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
set cino=>2,e0,n0,f0,{2,}0,^0,\:2,=2,p2,t2,c1,+2,(2,u2,)20,*30,g2,h2
set modeline
set modelines=3
set expandtab
set cindent
set hls
set ruler
set bs=2
set sw=2
set gfn=terminal\ Medium\ 16
filetype plugin on
filetype plugin indent on
syntax on
hi Comment ctermfg=Green
hi Constant ctermfg=Yellow
hi PreProc ctermfg=Red
hi Type ctermfg=none
hi Statement ctermfg=none
hi Label ctermfg=White
hi Function ctermfg=cyan
" Go to tab by number
noremap <A-1> 1gt
noremap <A-2> 2gt
noremap <A-3> 3gt
noremap <A-4> 4gt
noremap <A-5> 5gt
noremap <A-6> 6gt
noremap <A-7> 7gt
noremap <A-8> 8gt
noremap <A-9> 9gt
noremap <A-0> :tablast<cr>
cnoreabbrev tn tabnew
iab teh the
iab Teh The
" Don't display the toolbar - we never use it
set guioptions-=T
" Longer / wider window tab
set guitablabel={%N}\ %m%-025.50f\ %r
" Set marker based folding by default
augroup vimrc
au BufReadPre * setlocal foldmethod=marker
au BufWinEnter * if &fdm == 'marker' | setlocal foldmethod=manual | endif
augroup END
autocmd BufEnter *.bh,*.bs :setlocal filetype=c