cpptags : ftplugin that customizes 'tagfunc' for C++ files
script karma |
Rating -1/1,
Downloaded by 386 |
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 ctags 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.
cpptags.vmb |
1.0.5 |
2025-05-15 |
8.0 |
Miguel Barro |
+ cast operator support
+ regexp drive through
+ exact match ignore domains
+ code simplification
+ coroutine operation support
+ asio options |
cpptags.vmb |
1.0.4 |
2025-03-07 |
8.0 |
Miguel Barro |
Minor fixes and a new options file (nlohmann/json) |
cpptags.vmb |
1.0.2 |
2024-11-20 |
8.0 |
Miguel Barro |
Speed up ftplugin loads and workaround issues loading session files: using script functions for 'tagfunc' leds to odd behavior if the ftplugin is reloaded |
cpptags.vmb |
1.0.1 |
2024-09-08 |
8.0 |
Miguel Barro |
Added autoinstall support. |
cpptags.vmb |
1.0 |
2024-09-07 |
8.0 |
Miguel Barro |
Initial upload |
ip used for rating: 18.97.14.91
|