Sunday, May 25, 2014

puzzling mapping behavior

this mapping:

nmap <c-y> 0i``<CR><esc>:%s/\s\*\n\s\*\n\s\*\n/\r\r/g<CR>/^``<CR>

produces what seems to me an incorrect behavior. if the %s doesn't
find anything, the cursor ends up on the line after the "``" mark.
until recently it would land on the first "`" mark, i.e., where i want
it. adding 'k' to the mapping has no effect

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: