-
Notifications
You must be signed in to change notification settings - Fork 9
/
plugins_config.vim
99 lines (85 loc) · 2.76 KB
/
plugins_config.vim
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
let mapleader=" "
" lightline settings
try
source ~/.vim/settings/lightline_settings.vim
catch
endtry
" GoldenView settings
let g:goldenview__enable_default_mapping = 0
nmap <silent> <leader>w <Plug>GoldenViewSwitchMain
" ctrlp settings
let g:ctrlp_map = '<leader>f'
let g:ctrlp_max_files = 0
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_working_path_mode = 'rw'
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
let g:cIndexer_custom_ignore_extensions = ['o', 'a', 'la', 'so', 'class', 'pyc', 'pyd']
let g:cIndexer_custom_ignore_directories = ['.cache']
nnoremap <leader>b :CtrlPBuffer<cr>
" delimitMate settings
autocmd FileType python let b:delimitMate_nesting_quotes = ['"']
imap <c-d> <Plug>delimitMateS-Tab
" nerdtree settings
nnoremap <F3> :NERDTreeToggle<cr>
let NERDTreeIgnore=['.o$[[file]]', '.class$[[file]]', '.git$[[dir]]']
" tagbar settings
nnoremap <F4> :TagbarToggle<cr>
let g:tagbar_type_go = {
\ 'ctagstype': 'go',
\ 'kinds' : [
\'p:package',
\'f:function',
\'v:variables',
\'t:type',
\'c:const'
\]
\}
" vim-sneak settings
let g:sneak#label = 1
" vim-easy-align settings
" Start interactive EasyAlign in visual mode (e.g. vip<Enter>)
vmap <Enter> <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" python-syntax settings
let python_highlight_space_errors = 0
let python_highlight_all = 1
" vim-gutentags settings
let g:gutentags_cache_dir = "~/.cache/ctags"
" vim-quickhl settings
nmap <leader>h <Plug>(quickhl-manual-this-whole-word)
xmap <leader>h <Plug>(quickhl-manual-this-whole-word)
nmap <leader>u <Plug>(quickhl-manual-reset)
xmap <leader>u <Plug>(quickhl-manual-reset)
let g:quickhl_manual_colors = [
\ 'ctermbg=cyan ctermfg=black guibg=#8CCBEA guifg=black',
\ 'ctermbg=green ctermfg=black guibg=#A4E57E guifg=black',
\ 'ctermbg=yellow ctermfg=black guibg=#FFDB72 guifg=black',
\ 'ctermbg=red ctermfg=black guibg=#FF7272 guifg=black',
\ 'ctermbg=magenta ctermfg=black guibg=#FFB3FF guifg=black',
\ 'ctermbg=blue ctermfg=black guibg=#9999FF guifg=black',
\ ]
" ultisnips settings
let g:UltiSnipsExpandTrigger = '<c-j>'
let g:UltiSnipsSnippetsDir = '~/.vim/bundle/vim-snippets/UltiSnips'
let g:is_bash = 1
" YouCompleteMe setting
nnoremap <leader>g :YcmCompleter GoTo<CR>
let g:ycm_confirm_extra_conf = 0
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_filetype_blacklist = {
\ 'tagbar' : 1,
\ 'qf' : 1,
\ 'notes' : 1,
\ 'markdown' : 1,
\ 'unite' : 1,
\ 'text' : 1,
\ 'vimwiki' : 1,
\ 'pandoc' : 1,
\ 'infolog' : 1,
\ 'mail' : 1,
\ 'searcher' : 1
\}
" vim-go settings
let g:go_fmt_command = "goimports"