On 2018-08-19 05:04, Sand Glass wrote:
> I got it. Need <CR>/enter to normal mode.
> nnoremap cP :let @p=expand('%:p')<CR>:norm "pp<CR>
Alternatively, you can simplify that by pasting the expression
register itself:
nnoremap cP "=expand('%:p')<cr>p
which saves you from tromping over a register with the temporary
results.
-tim
--
--
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.
Sunday, August 19, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment