Note: The very first message to this list is always moderated, so
sometimes it takes a bit of time until a moderator notices a new message
in the queue waiting for approval.
On Sa, 25 Mai 2024, Andreas Otto wrote:
> the following code does NOT work.
> The goal is to use a shortcut like "Gmx" to jump to a mark "MARK_X" in the test.
> to make it more useable U want to create a function with the last string (in the case above "X" as argument.
>
> question: HOW I write a "goto-mark" function in vim?
In its simplest form the following should work:
function GotoMark(str)
exe 'g/MARK_' .. a:str
endfunction
Thanks,
Christian
--
Line Printer paper is strongest at the perforations.