> Oh! Thanks for the update, and for crediting me. Another way of
> doing that is to put a brief mention in the edit summary,
> because it's not really possible to credit people in tips as
> just about everyone gets their ideas from somewhere else.
Fair enough, I'll keep that in mind going forward,
> I have just remembered that :put works with a list, so you might
> like to consider the following as well (for paste lines):
>
> :put =readfile('/dev/clipboard')
The behaviour is slightly different. using the 'let' command and
'normal p' the cursor remains at it's original position, whereas with
the 'put' command, the cursor is moved to the last line.
Additionally, the 'put' command is linewise, so the contents of the
clipboard is always dumped on the line below where the cursor was
originally.
Cheers,
Chris
--
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d
--
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
No comments:
Post a Comment