-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
70 lines (53 loc) · 1.42 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
filetype plugin on
" Indention
set autoindent
set smartindent
set encoding=utf-8
" Search
set incsearch
set hlsearch
" Jump to last place
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") && @% !~# "COMMIT_EDITMSG" | exe "normal! g'\"" | endif
endif
" Do not fix no EOL
set nofixendofline
" Create .vimundo directory
if empty(glob('~/.vimundo'))
silent !mkdir ~/.vimundo
endif
" Persistent undo
set undofile
set undodir=$HOME/.vimundo
" Never fix EOF, for the sake of keeping diffs clean
set nofixendofline
" Color scheme
syntax on
packadd! onedark.vim
set t_Co=256
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
let g:onedark_terminal_italics = 1
colorscheme onedark
" Clear background
hi! Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE
" YouCompleteMe
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
" Gutentags
let g:gutentags_ctags_extra_args = ['--fields=+l']
" indentLine
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_char = '┊'
let g:indentLine_first_char = '┊'
" NERDCommenter
let g:NERDSpaceDelims = 1
let g:NERDCommentEmptyLines = 1
let g:NERDTrimTrailingWhitespace = 1
let mapleader = ","
nnoremap <Leader>t :TagbarToggle<CR>
set laststatus=2