Is there a way to compress a tag file in vim

I followed the tutorial on teuton.blogspot.com to set up autocomplete when I ran the command:

ctags –R --c++-kinds=+p --fields=+iaS --extra=+q \
    -f ~/.vim/commontags /usr/include

to create a tag file, just to make sure that the command will generate a 1.5GB commontags file - a little more than I would like, no doubt. So I was wondering if there is a way to compress the file and that vim still recognizes it?

I tried to run it through gzip, which brought it down to 25 MB, but I was not lucky that vim used this file.

Any ideas? I would be thankful!

/ B2S

+3
source share
2 answers

--excmd=number 50%, ctags . , /usr/include .

+5

, vim .

- , . /usr/include/, , , .

, . , , , . , . , , .

, , --exclude, . . , .

man ctags
/--exclude <-- to search for exclude 

-

`ctags –R --c++-kinds=+p --fields=+iaS --extra=+q \
-f ~/.vim/commontags /usr/include/lib_i_need_a /usr/include/lib_i_need_b `
+5

Source: https://habr.com/ru/post/1764414/


All Articles