-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
79 lines (63 loc) · 2.16 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
" encoding
set enc=utf-8
scriptencoding utf-8
set nocompatible
filetype plugin indent on
" vim-plug
try | call plug#begin(exists('s:plug') ? s:plug : '~/.vim/plugged')
Plug 'vim-airline/vim-airline' " shows current status
Plug 'vim-airline/vim-airline-themes' " airline theme
Plug 'airblade/vim-gitgutter' " shows git-diff
Plug 'tpope/vim-fugitive' " use git commands in vim & shows git status
Plug 'editorconfig/editorconfig-vim' " configuration for cooperation
Plug 'tpope/vim-git' " git syntax highlighter
Plug 'godlygeek/tabular'
Plug 'Yggdroot/indentLine' " shows vertical indent line
Plug 'sheerun/vim-polyglot' " syntax highlighting pack
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
if v:version >= 702
Plug 'justinmk/vim-dirvish' " path nevigator
endif
call plug#end() | catch /^Vim\%((\a\+)\)\=:E117/ | echo 'No vim-plug' | endtry
" Disable automatic folding and concealing of plasticboy/vim-markdown
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_conceal = 0
" vim airline
set laststatus=2
let g:airline_powerline_fonts = 1
let g:airline_theme='murmur'
" indent
set autoindent
set smartindent
set shiftwidth=4
set softtabstop=4
set expandtab
let g:indentLine_char = '›'
let g:indentLine_color_term = 239
" interface
set number
set cursorline
hi CursorLine cterm=NONE ctermbg=black guibg=black
set fillchars+=vert:│
hi VertSplit cterm=NONE ctermbg=NONE ctermfg=NONE
set mouse=a
if has("autocmd")
if v:version > 701
autocmd Syntax * call matchadd('Debug', '\W\zs\(NOTE\|INFO\|IDEA\|???\)')
autocmd Syntax * call matchadd('Search', '\W\zs\(FIXME\|TODO\|XXX\)')
autocmd Syntax * call matchadd('ErrorMsg', '\W\zs\(ERROR\|FATAL\)')
endif
endif
" searching
set hlsearch
" vimdiff
highlight DiffChange ctermbg=NONE
highlight DiffText ctermbg=22
highlight DiffAdd ctermbg=22
highlight DiffDelete ctermbg=NONE ctermfg=235
" listchars
set list
set listchars=tab:›\ ,extends:»,precedes:«
" Enable modelines
set modeline
set modelines=5