-
Notifications
You must be signed in to change notification settings - Fork 96
/
.vimrc
108 lines (87 loc) · 3.05 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 compatibility to Vim only.
set nocompatible
"Always show current position
set ruler
" Turn on syntax highlighting.
syntax on
" Turn off modelines
set modelines=0
" Uncomment below to set the max textwidth. Use a value corresponding to the width of your screen.
" set textwidth=80
set formatoptions=tcqrn1
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set noshiftround
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Don't redraw while executing macros (good performance config)
set lazyredraw
" For regular expressions turn magic on
set magic
" Display 5 lines above/below the cursor when scrolling with a mouse.
set scrolloff=5
" Fixes common backspace problems
set backspace=indent,eol,start
" Display options
set showmode
set showcmd
set cmdheight=1
" Highlight matching pairs of brackets. Use the '%' character to jump between them.
set matchpairs+=<:>
" Display different types of white spaces.
"set list
"set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
" Show line numbers
set number
highlight LineNr ctermfg=black
" Set status line display
set laststatus=2
hi StatusLine ctermfg=NONE ctermbg=red cterm=NONE
hi StatusLineNC ctermfg=black ctermbg=red cterm=NONE
hi User1 ctermfg=black ctermbg=magenta
hi User2 ctermfg=NONE ctermbg=NONE
hi User3 ctermfg=black ctermbg=blue
hi User4 ctermfg=black ctermbg=cyan
set statusline=\ " Padding
set statusline+=%f " Path to the file
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+=line " of Text
set statusline+=\ " Padding
set statusline+=%l " Current line
set statusline+=\ %4*\ " Padding & switch colour
set statusline+=of " of Text
set statusline+=\ " Padding
set statusline+=%L " Total line
set statusline+=\ " Padding
" Encoding
set encoding=utf-8
" Highlight matching search patterns
set hlsearch
" Enable incremental search
set incsearch
" Include matching uppercase words with lowercase search term
set ignorecase
" Include only uppercase words with uppercase search term
set smartcase
" Store info from no more than 100 files at a time, 9999 lines of text
" 100kb of data. Useful for copying large amounts of data between files.
set viminfo='100,<9999,s100