-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
44 lines (35 loc) · 936 Bytes
/
dot_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
" Enable syntax highlighting
syntax on
" Line numbering
set number
set relativenumber
set smartindent
set nowrap
set smartcase
set termguicolors
set incsearch
"highlight LineNr ctermfg=darkgray ctermbg=black
" Highlight current line
"set cursorline
"hi CursorLine cterm=none ctermbg=darkgray
" Highlight misspelled words via underlining
hi clear SpellBad
hi SpellBad cterm=underline
" Highlight trailing whitespaces
highlight ExtraWhitespace ctermbg=red guibg=red
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
" Filename tab completeion
set wildmode=longest,list,full
set wildmenu
" Prefered line length indication
"set colorcolumn=77
highlight ColorColumn ctermbg=235
" Some further coloring
"colorscheme gruvbox
set background=dark
"highlight SignColumn ctermbg=black
" Keep working directory clean
set backupdir=/tmp//
set directory=/tmp//
set undodir=/tmp//