Reputation: 329
If we type :help in vim, read the vim help file, and see a blue (or say green-blue) word, that word is a link. We can put the cursor in the word, and press Ctrl-] on the keyboard, then we go to the linked contents.
I am new to .rst files. My question is, when I read a .rst file, and see a blue (or say green-blue) word, can I press any key so I can go to the linked contents?
Upvotes: 0
Views: 727
Reputation: 47117
The reason these "links" work in the help files is because vim have created tags files for you.
Find a proper program to generate tags file rst and you will be able to jump to these as well.
See :help 29.1
for more information.
Upvotes: 1
Reputation: 11820
When it comes to external links like HTTP: and things like that, just type gx in normal mode. See also this link: https://sbulav.github.io/vim/neovim-opening-urls/
Upvotes: 1
Reputation: 196789
reStructuredText has lots of kinds of hyperlinks, that Vim may or may not be able to follow natively or with a little help.
Implementing all that sounds like a fun Saturday afternoon project but, if you are in a hurry, you might want to take a look at gu-fan/riv.vim which provides hyperlink navigation, among many other things.
Upvotes: 1