-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
79 lines (61 loc) · 1.68 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
"" looks
syntax on
set background=dark
let g:gruvbox_italic='1'
"let g:gruvbox_number_column='bg1'
let g:gruvbox_contrast_dark='hard'
let g:gruvbox_guisp_fallback='bg'
colorscheme gruvbox
set cursorline
"let g:indentLine_char = '|'
"" behaviour
set wildmenu "use popup menu for autocompletion
set scrolloff=7 "minimum lines to keep when scrolling
"" search
set hlsearch "highlight search
set ignorecase
set smartcase
"" mouse
set mouse=v
"" persistent registers
set viminfo='100,<1000,s100,h
"" indentaion
set autoindent "copy indent level from last line
set smartindent "auto indent body
set noexpandtab "indent using tabs
set tabstop=4 "one tab is displayed as 4 spaces
set shiftwidth=4 "indent codeblock content one tab
"" invisibles
set list
set listchars=tab:‣\ ,trail:·,precedes:<,extends:>
highlight SpecialKey ctermfg=darkgrey
"" statusbar
set ruler
set number relativenumber
"" intelligent line numbering
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
"" show conceald text when entering insert mode
let g:indentLine_setConceal = 0
set concealcursor=nc
set conceallevel=2
"" commands
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
"" vim-airline
set ttimeoutlen=10
"" vim-gitgutter
set updatetime=500
"" omni-completion
set omnifunc=syntaxcomplete#Complete
""
autocmd Filetype gitcommit setlocal textwidth=72 colorcolumn=+1
autocmd Filetype tex setlocal spell spelllang=de
autocmd Filetype markdown setlocal spell spelllang=de
"" vim-easy-align
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)