vim-gutentags
vim-gutentags copied to clipboard
Question on how to solve my very specific problem.
Hello, I'm using VIM from Linux in an ugly set up. Basically what I do is have my .git folder locally and my files folder in a remote Windows computer. Then I tell git to consider the local .git so I can keep track of changes made on the remote computer.
I'm not familiar with vim script but from what I understand from it and the documentation is that when I let the plug in find a project root location it searches folders named .git, .hg and so on.
I tried adding a "mock" .git folder with an empty file on my remote route but the "get_project_root" doesn't find a valid project root folder. The problem is specifically in the validation "if !empty(globpath(l:path, root, 1))", which is always false.
The routes the script generates seem to be fine, with a starting path: /run/user/1000/gvfs/smb-share:server={my_server_name},share={my_user}/{my_folder}
So, summarizing, my question here would be: how could I trick the plugin to make it find the .git folder although it's not a well formed .git folder? Does a .git folder containing an empty file enough?
Apparently the route /run/user/1000/gvfs/smb-share:server={my_server_name},share={my_user}/{my_folder} is not a valid path for globpath?
I'm using that remote path as a symlink stored in my home folder. The output of that globpath call with a "pretty" path (e.g. "~/symlink_to_remote_location/project_folder") is correct..
So my two options are:
- Feed the script the pretty path.
- Find a way to make globpath accept the samba path.
That is indeed an unusal setup :).
Is there a particular reason you don't mount the shared folder into a local mount point? That would have indeed given Vim a "normal looking" path which would work fine with globpath I assume.