Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
let g:ycm_use_clangd = 1
set tabstop=4 shiftwidth=4 expandtab

let g:copilot_proxy = ''

"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_max_diagnostics_to_display = 0
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'debug'
"let g:ycm_server_python_interpreter = ''

let g:ycm_enable_diagnostic_signs = 0 " hide vertical leftside panel

Expand All @@ -16,12 +21,16 @@ filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'valloric/youcompleteme'
Plugin 'ycm-core/YouCompleteMe'
Plugin 'vhda/verilog_systemverilog.vim'
"" Plugin 'github/copilot.vim'

Copilot AI Apr 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is commented with two quote characters ("" Plugin ...). Vim treats " as the comment leader, so the extra quote is just noise and makes it look like an accidental typo. Use a single leading " (or remove the line entirely) to keep the config unambiguous.

Suggested change
"" Plugin 'github/copilot.vim'
" Plugin 'github/copilot.vim'

Copilot uses AI. Check for mistakes.
call vundle#end() " required
let &rtp .= ',' . expand( '<sfile>:p:h' )

Copilot AI Apr 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let &rtp .= ',' . expand('<sfile>:p:h') appends the directory containing this vimrc to runtimepath. In this repo that directory doesn’t contain any runtime scripts/plugins, so this is effectively a no-op at best, and at worst can cause Vim to source unintended runtime files if anything is added there later. Consider removing it or pointing runtimepath at a specific, intended runtime directory (e.g., a dedicated vim/ subfolder).

Suggested change
let &rtp .= ',' . expand( '<sfile>:p:h' )

Copilot uses AI. Check for mistakes.
filetype plugin indent on " required
syn on

map <F9> :YcmCompleter FixIt<CR>
map <F10> :YcmCompleter Format<CR>
let mapleader=" "
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
Expand All @@ -32,3 +41,8 @@ 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

set list

set listchars=tab:▸\ ,trail:·,precedes:←,extends:→,nbsp:·
",multispace:→\ \ \

Copilot AI Apr 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trailing commented fragment ",multispace:... looks like it was meant to be part of the set listchars=... configuration but is currently disabled and left as a dangling line. Either remove it or fold the multispace: setting into the set listchars line so the intended listchars configuration is explicit and maintainable.

Suggested change
",multispace:→\ \ \

Copilot uses AI. Check for mistakes.