Hi everybody,
I have a text file with content like this:
[example.jpg|image]
[example.pdf|document]
[another.jpg|image]
[yetanother.doc|document]
And I'd like to make vim "jump" between the 4 items back and forth via
two selected keys, for example "n" for next and "p" for previous. When
one of the items is "selected", it should be highlighted with a
background different from the default, I mean the whole item from [ to
] should have a different background. Then I'd like to be able to
press a third key, for example, Enter, which should call a vim
function with the 2 arguments given by the file name and the file
type, for example "example.pdf" and "document".
How would I go about achieving this?
--
Psss, psss, put it down! -
http://www.cafepress.com/putitdown