Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想映射F12以获取标签ctags,所以我这样写vimrc:
F12
ctags
vimrc
map <F12> :call Do_CsTag()<CR> function Do_CsTag() if(executable('ctags')) silent! execute "!ctags -R --c-types=+p --fields=+S *" endif endf
当我按下F12我的C源文件时,屏幕变成白色,我该如何解决?
C
在这种情况下尝试使用system():替换
system()
silent! execute "!ctags -R --c-types=+p --fields=+S *"
和
call system('ctags -R --c-types=+p --fields=+S *')
.