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.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZlGiAQGXJ6%2B98wsy%40256bit.org.
Saturday, May 25, 2024
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment