i want to write a makro and need to know how i can move to the end and to the beginning of a string, respektively i want to visually select the link so that i can surround it with brackets.
my line in vim looks like this
- test test http://www.test.tets/
the cursor is positioned somewhere in the link. this case is somehow special, because the link ends on the end of the line. i need a general solution, which also runs, when the link is in the middle of a line:
- test http://test.test tset and so on
i want to visually select the link and than surround it with brackets. this is for a markdown file.
i already tried to use the word movements, but they do not work in links.
thx in advance!