Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-12-2006, 10:10 AM
|
#1
|
|
Member
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267
Rep:
|
Silly vim question
One of my friends suggested that I start learning vim, and because I have an abundance of time on my hands, I decided I would, and have since enjoyed learning immensly. However, one of the commands I came across that would be useful is yanking or cutting text into registers. The instruction manual said that if I wanted to yank a line into register a, I would just hit ayy. However, this throws me into insert mode at the end of the line and inserts yy. Similarly, b already means something else as well. Did I misunderstand the instructions, or is there an extra step involved. I was fairly certain there are 26 named registers that correspond to letters. Anyway, thanks for any help.
|
|
|
|
04-12-2006, 10:25 AM
|
#2
|
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
The human mind tends to ignore quotation marks in commands because it looks like the command is being quoted.
You need to type "ayy
Not ayy.
Then to paste, "ap
a on its own of course means append and insert mode.
|
|
|
|
04-12-2006, 10:25 AM
|
#3
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,716
|
Hi,
That (ayy) should be "ayy.
To place buffer content (a in this example) before cursor: "aP
To place buffer content after cursor: "ap
BTW: They are called buffers, not registers
Hope this clears things up.
Last edited by druuna; 04-12-2006 at 02:09 PM.
|
|
|
|
04-12-2006, 02:38 PM
|
#4
|
|
Member
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267
Original Poster
Rep:
|
Thank you both. A whole bunch of things just got much easier.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:08 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|