cpptags : ftplugin that customizes 'tagfunc' for C++ files
script karma |
Rating 0/0,
Downloaded by 279 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Miguel Barro |
|
script type |
ftplugin |
|
description |
repo: https://github.com/MiguelBarro/cpptags
The default builtin 'tagfunc' is not suitable for modern C++, lacks support
for: namespaces and classes, function and methods signatures, template
parameters and specialization.
The new ctags releases provide support for the above features and
more, see: https://docs.ctags.io/en/latest/parser-cxx.html
This filetype-plugin will automatically set up a new 'tagfunc' that will
profit from the new ctags fields.
|
|
install details |
An obvious precondition is having ctags installed. Is available on the most
popular package managers:
In order to install powershell core (pwsh) I advise:
• Windows. Use winget:
> winget install UniversalCtags.Ctags
• Ubuntu. Use apt:
$ sudo apt install universal-ctags
• MacOs. Use brew:
$ brew install universal-ctags
This plugin can be installed using any popular plugin manager (vim-plug,
Vundle, etc...) but vim plugin integration is extremely easy in later releases
(version 8.0 introduced package support):
• A vimball is distributed by www.vim.org. Installation is as easy as
sourcing the vimball file:
:source cpptags.vmb
so is uninstall:
:RmVimball cpptags.vmb
• The github repo can be cloned directly into the $VIMRUNTIME/pack directory
as explained in matchit-install. Though using this approach many useless
files will be installed too.
• Use getscript plugin to automatically download an update it. Update the
local $VIMRUNTIME/GetLatest/GetLatestVimScripts.dat adding a line
associated with this plugin.
Once installed the vim's filetype plugins must be enabled (see
help :filetype-plugin-on):
:filetype plugin on
is adviceable to introduce this into the .vimrc if not there already.
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.82
|