Re: make gtags.vim work for any dir
Andrey Butirsky <[email protected]> Wed, 23 Jan 2019 18:35:29 +0300
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <[email protected]> |
Yes, like this. Also, it works if the source file and GTAGS are not exactly in the same directory, but just in common path: $ cd some_random_dir $ vim :e /xxx/subdir/a.c :Gtags main From now on, use /xxx/GTAGS. Shigio, I would love if we could make the needed changes in the gtags.vim upstream. In my opinion, it's pretty useful feature. On 23.01.2019 18:21, Shigio YAMAGUCHI wrote: > Do you mean the following usage? > > :e /xxx/a.c Load a file. > :Gtags main From now on, use /xxx/GTAGS. > :e /yyy/x.c Load another file. > :Gtags main From now on, use /yyy/GTAGS.