Skip to content

Keep current directory to the directory runs vim#12

Open
LiYaoYu wants to merge 1 commit intowenlongche:masterfrom
LiYaoYu:master
Open

Keep current directory to the directory runs vim#12
LiYaoYu wants to merge 1 commit intowenlongche:masterfrom
LiYaoYu:master

Conversation

@LiYaoYu
Copy link
Copy Markdown

@LiYaoYu LiYaoYu commented Oct 13, 2018

Keep the current directory in the directory which originally runs vim rather than the file directory (what "set autochdir" did).

This fixes #10 #11 and the second part stated in #2.

  1. It creates tags in the root directory of projects which does not limit the scope of the tags file (2. in suggestions #2)
  2. It does not change the directory so cscope can find the target location based on relative path (Current Path Error #10 tags在项目的根目录,打开子目录下的文件,srcexpl显示定义未找到。 #11)

If this modification has unexpected side effect, please let me know.
Thank you so much.

Make the current directory stay in the directory which originally runs
vim rather than the file directory (what autochdir did).
@rtiemann
Copy link
Copy Markdown

This patch saved my day, thank you!
It would be great if it could be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Current Path Error

2 participants