LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] TOTD: Multiple clipboards in vim

[ILUG] TOTD: Multiple clipboards in vim

Stephen Brooks stephen at lincor.com
Fri Nov 5 10:35:36 GMT 2004


	I've been using the standard command to copy, cut and paste in vim for 
ages.  Recently found I needed multiple buffers for editing a certain 
file and was aware of the multiple clipboard features of vim but never 
learnt it so investigated.  Don't know why I didn't prod this handy 
feature previously!

	To copy/cut the desired text into a specific buffer simply prepend "x 
to your command of choice (double quote followed by x, where x is the 
single letter name for your buffer).  Then to recall that buffer prepend 
the same again before your paste command.

i.e. <Select some text>
      "ay          (copies currently selected text to 'a' buffer)
      <Select some other text>
      "by          (copies currently selected text to 'b' buffer)
      <Move cursor to where you want to put 'a'>
      "ap          (pastes the contents of buffer 'a' after the cursor)

Happy editing,
-- 
Stephen Brooks <stephen at lincor.com>                     17 Dame Court
Software Engineer                                   Dublin 2, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 6746413



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell