-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
34 lines (27 loc) · 1.12 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
let g:ycm_use_clangd = 1
"let g:ycm_clangd_binary_path = '/home/yan/.vim/bundle/youcompleteme/third_party/ycmd/third_party/clangd/output/bin/clangd'
let g:ycm_clangd_args = ['-log=verbose']
let g:ycm_max_diagnostics_to_display = 0
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'debug'
let g:ycm_enable_diagnostic_signs = 0 " hide vertical leftside panel
let g:verilog_syntax_fold_lst = "all"
"set foldmethod=syntax
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'valloric/youcompleteme'
Plugin 'vhda/verilog_systemverilog.vim'
call vundle#end() " required
filetype plugin indent on " required
map <F9> :YcmCompleter FixIt<CR>
let mapleader=" "
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
autocmd FileType c,cpp setlocal equalprg=clang-format
"for `tmux` from https://github.com/tmux/tmux/issues/699#issuecomment-269572025
set background=dark
set t_Co=256