Reputation: 8585
I want to use vim and ctags for storing my own information in one folder. Is any way to implement this ?
Example: i want to insert a piece of information about mysql, im creating a file or other new structure which can be parsed by ctags in future.
Upvotes: 2
Views: 239
Reputation: 5561
Yes. You can implement it in two ways as follows
data file contents
blah
--Lots of other data
blah
TOPIC: MySql nugget
MySql is a cool open-source database.
But Cassandra & NoSql are all the rage today.
tags file contents
MySql data /^TOPIC: MySql$/;"
toc file contents
Table of Contents
MySql
Now load up the toc file place your cursor on M of MySql and hit Ctrl ] it should automatically load up the data file and place your cursor at the begining of TOPIC: MySql
You can create any number of data files, each having any number of TOPIC: strings and you can create any number of patterns (in effect) devise your own language and have ctags automatically create a tags for you.FORMAT
Upvotes: 3