How to implement own tag jump in VIM with CTRL-]? -
If: H is used in VIM, it will automatically follow. Link | Through CTRL + ] , open a new help topic and maintain the tag jumps list ( CTRL + T ) Jumps History) How to implement such behavior in my own file format? For example, to open a file named something.txt, type CTRL + ] + ] and CTRL + T How to implement this to return?
This is done with all tags, basically the Vim files are simple text files, The file is supported by the file in the same directory called 'tag'. All files contain entries that appear:
'bg' options.txt / * 'bg' * 'bh' options.txt / * 'bh' * 'bin' options.txt / * 'Bin' * 'binary' option. Txt / * 'Binary' * 'Biosk' option. Txt / * 'biosk' * 'Bioski' options.txt / * 'Bioski' * *
Each line is a tag entry, is divided into three areas: tag identifier, tag File, and pre-command to search for that tag: Any previous command works; As seen in the example above, insurance help files only use search commands: '/'.
You can manually write a tag file or use a program like yourself to create a file. Typically the tag file is read from the same directory as the file you are editing, but you can adjust it to the value of the 'tag' option and turn it into a vim.
If you type ": help tag
"
Comments
Post a Comment