Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep current directory to the directory runs vim #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LiYaoYu
Copy link

@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

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