2012-10-04 41 views
0

我要地圖F12通過ctags得到的標籤,所以我在vimrc這樣寫道:如何停止重繪我的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源文件,屏幕轉是白色的,我怎麼修復它?

+1

「屏變寫」是什麼意思? – none

+0

vim屏幕變爲白色。 – znlyj

+0

確實按下了''修復了嗎? – rbernabe

回答

1

嘗試在這種情況下使用system():與

call system('ctags -R --c-types=+p --fields=+S *') 

更換

silent! execute "!ctags -R --c-types=+p --fields=+S *" 

+0

它確實有效!萬分感謝! – znlyj