I am doing personal documentation in the VIM editor, I have several documents and I would like to put a link that takes me from one document to another, I don't know if there is any way to do it or some plugin to help me with this task.
I am doing personal documentation in the VIM editor, I have several documents and I would like to put a link that takes me from one document to another, I don't know if there is any way to do it or some plugin to help me with this task.
If in any text document, you have "written" a relative or absolute path to another document that you can eventually open with Vim, for example in a document like :
If your cursor is on the path, in "normal" mode you can use the
gf
or combinationgoto file
. In general Vim does a good job of determining the path from where you are, however you can also directly visually select the path from the text.The particularities of this command can be seen here
On the other hand, if the links point to other types of documents, which you will need to open with another application, you have a similar way to the previous one but with the keys
gx