开发者

How to add cscopes multiple times in vim

I want to add the cscope files only if the type of the editing file is of *.cpp. I have done like this.

au FileType cpp cs add mycscope.out.

The 开发者_开发百科problem is if i open some other cpp file it tries to add again, how to avoid it.


You could simply ignore the error:

au FileType cpp silent! cs add mycscope.out
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜