Friday, August 30, 2013

yankring and @: (repeat last ex command)

Hello,

Yankring doesn't seem to manage the @: command, so I first tried this workaround :

nnoremap @: :<c-r>:<cr>

which works, but is not very elegant.

So, I suggest the small patch below to fix it. Probably a quick and
dirty one, I hope there is no mistake :

--- .yankring.vim.bkp 2013-08-30 10:29:13.058816243 +0200
+++ yankring.vim 2013-08-30 10:52:43.766806732 +0200
@@ -1673,6 +1673,11 @@
return ""
endif

+ if zapto == ":"
+ normal! @:
+ return ""
+ endif
+
if zapto !~ '\(\w\|@\)'
" Abort if the user does not specify a register
call s:YRWarningMsg( "YR:No register specified, aborting macro" )

--
Regards,

Davido

--
--
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/groups/opt_out.

No comments:

Post a Comment