If I define:
nmap = /===<cr>
after pressing = to jump to the next occurrence of === I may use <C-o> to jump
back. Great. But if I define:
nmap = :<c-u>exe '/==='<cr>
then searches for some reason are not added to the jump list. Can you confirm
this behaviour? Is there a way to remember jumps in the latter case?
This is a contrived example, but I have encountered this problem when trying to
define a mapping in a plugin, which builds the regex out of a variable (so I
need to use :exe).
Using Vim 7.4.1707.
Nicola
--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.