Good morning,
In the same vein i posted before, now i want to use * to search one
path in this way.
if i position my cursor on the line:
'/abc/def/ghi/klm'
of localisation, where
abc is the part
def is the chapter
ghi is the section
klm is the subsection
When i press F5 (or another touch) when my cursor is on "abc", i want
to search the lines beginning with "abc".
When i press F5 (or another touch) when my cursor is on "def", i want
to search the lines beginning with "abc/def".
When i press F5 (or another touch) when my cursor is on "ghi", i want
to search the lines beginning with "abc/def/ghi".
When i press F5 (or another touch) when my cursor is on "klm", i want
to search the lines beginning with"abc/def/ghi/klm".
I have already posted it on this group before (but not exactly the
same), but i tried something, and i don't know why it does not work:
map <F5> vf/F'*
selection to the next / and back to '
A few problems appear:
1) Only the second point is taken into account (F'), and not (f/)
2) the condition for f should be / OR ', and not only /
3) i want to leave visual mode when i do *
Can you help me?
Best regards,
Mathieu Roux
--
--
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/64bf126c80f93001066ceb61397a18aaec3a104c.camel%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, May 15, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment