开发者

How to add cscopes multiple times in vim

开发者 https://www.devze.com 2023-02-26 16:03 出处:网络
I want to add the cscope files only if the type of the editing file is of *.cpp. I have done like this.

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

精彩评论

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