Skip to content
Liu-Cheng Xu edited this page Jan 16, 2022 · 3 revisions

Tips

Intergrate with Quickfix List

To load search results into Vim's built-in quickfix list, press Tab to toggle selection, once done, press Enter.
Then, the selected entries should be populated into the quickfix list.

This method should work with any Clap search commands. For example :Clap git_files , :Clap grep etc.

Note: toggling selection for all filtered results is currently not supported yet.

Install gtags

Do not install it via sudo apt install global when using Ubuntu, better to fetch and compile the latest version on your own.

  1. Download the source archive from https://www.gnu.org/software/global/download.html .

  2. pip install Pygments

  3. Install the executable.

    ./configure
    make
    sudo make install
  4. Copy gtags.conf(/usr/local/share/gtags/gtags.conf on Ubuntu) to ~/.globalrc.

Troubleshooting

  • GTAGS can be generated, but it is empty.

    • Ensure ctagscom in ~/.globalrc is correctly set to the u-ctags path.
  • ImportError: No module named pygments.lexers

    • Edit /usr/local/share/gtags/script/pygments_parser.py and modify the line to correct python program path, e.g., !/usr/local/bin/python3.
Clone this wiki locally