vim 使用 cscope 的 prepend path? - Linux

Table of Contents

請教一下,我在 vim 裏面使用 cscope 時在 command mode 裏面執行

:cs add cscope.out /home/joseph/test


後面的 /home/joseph/test 是他的 prepend path,也是我現在的 directory,
我希望不要寫死,所以我嘗試了:


:cs add cscope.out $PWD
:cs add cscope.out pwd

等等類似的方式想要把變數放在後面,但是總是會報錯,
不知道要怎麼下指令才是正確的,感謝感謝!

--

All Comments

Callum avatarCallum2011-06-13
:h cs 看說明
Elizabeth avatarElizabeth2011-06-18
自問自答:let $CURDIR = getcwd()
Blanche avatarBlanche2011-06-18
:cs add cscope.out $CURDIR
Bennie avatarBennie2011-06-23
還有就是不要使用中文目錄,會有問題!