开发者

Expand directory name of currently opened buffer in ex-mode

开发者 https://www.devze.com 2023-02-03 13:44 出处:网络
I want to invoke the cscope command with the current working directory as the argume开发者_StackOverflownt. I have set up Vim to change its CWD to the currently opened buffer. If I have an opened buff

I want to invoke the cscope command with the current working directory as the argume开发者_StackOverflownt. I have set up Vim to change its CWD to the currently opened buffer. If I have an opened buffer of the file "C:\dir\subdir\file.d", I'd like to issue this call:

:cscope add C:\dir\subdir

Without having to manually type the directory name, of course.


How does :cscope behaves with :cscope %:p:h ? (some command accepts this form, some not)

0

精彩评论

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