Thursday, May 5, 2016

Re: specialized searching in C++

Hi kamaraju,

On Thursday, 2016-05-05 00:14:28 -0400, kamaraju kusumanchi wrote:

> Is it possible to search for a string foo with in the class bar while
> working with C++ header files?
> [...]
> and a typical header file will contain many such classes. Obviously, I
> am oversimplifying things here. But the idea is to do something like
>
> /bar::foo

Let Exuberant Ctags create a tags file using the options
--c++-kinds=+p --fields=+iaS --extra=+q
and then in vim use

:ts bar::foo

to jump to the declaration or definition. The ctags options are actually
copied from those required by the OmniCppComplete plugin.

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
Key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack
Use LibreOffice! https://www.libreoffice.org/

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: