-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
74 lines (69 loc) · 2.1 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
highlight Pmenu guifg=#1a1a1a guibg=#98b1c7
set backspace=2
syntax on
set number
set autoindent
filetype indent on
set ai
set si
set relativenumber
hi vertsplit ctermfg=black ctermbg=235
hi StatusLine ctermfg=black ctermbg=237
hi StatusLineNC ctermfg=black ctermbg=237
hi Search ctermbg=58 ctermfg=15
hi Default ctermfg=4
hi clear SignColumn
hi Terminal guibg=red guifg=red
hi SignColumn ctermbg=235
hi Directory guifg=#FF0000 ctermfg=cyan
hi SignColumn ctermbg=235
hi NonText ctermfg=237
hi LineNr ctermfg=239
hi PreProc ctermfg=blue
hi Type ctermfg=green
hi Constant ctermfg=magenta
hi Identifier ctermfg=red
hi StartifyNumber ctermfg=red
hi StartifyFile ctermfg=magenta
hi StartifyBracket ctermfg=red
hi StartifyHeader ctermfg=red
hi TabLineFill ctermfg=black ctermbg=black
hi TabLine ctermfg=gray ctermbg=black
hi TabLineSel ctermfg=blue ctermbg=black
set mouse=a
set tabstop=4
set shiftwidth=4
set expandtab
let g:currentmode={
\ 'n' : 'Normal',
\ 'no' : 'Normal·Operator Pending',
\ 'v' : 'Visual',
\ 'V' : 'V·Line',
\ "\<c-V>" : 'V·Block',
\ 's' : 'Select',
\ 'S' : 'S·Line',
\ "<c-S>" : 'S·Block',
\ 'i' : 'Insert',
\ 'R' : 'Replace',
\ 'Rv' : 'V·Replace',
\ 'c' : 'Command',
\ 'cv' : 'Vim Ex',
\ 'ce' : 'Ex',
\ 'r' : 'Prompt',
\ 'rm' : 'More',
\ 'r?' : 'Confirm',
\ '!' : 'Shell',
\ 't' : 'Terminal'
\}
set statusline=
set statusline+=%0*\ %{toupper(g:currentmode[mode()])}\ " The current mode
set statusline+=%1*\ %<%F\ " File path
set statusline+=\ %1*\ " Padding & switch colour
set statusline+=%y " File type
set statusline+=\ %2*\ " Padding & switch colour
set statusline+=%= " Switch to right-side
set statusline+=\ %3*\ " Padding & switch colour
set statusline+=%02l/%L\ :\ %02v\ %0* " Postition and line numbers
set fillchars=vert:\ ,stl:\ ,stlnc:\
set laststatus=2
set noshowmode