ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Oops sorry... that will not work on vi, because vi does not have visual mode. Now, if you are using vim (which is far better - pun indented), it should work.
Np. Always a pleasure to help another Linux and Vim enthusiast
Regards!
EDIT: oops. Yup, yank after. I can't test it now, but I think that if you yank, you will automatically leave visual mode. If you want to paste it, you will need to enter visual mode again (press v). i could be wrong though
EDIT2: tested. You don't need to be on Visual mode to paste, once you've "yanked"
Last edited by Mega Man X; 01-31-2007 at 03:47 AM.
vi doesn't have visual mode? What do think "vi" is short for? Hint: "visual editor". Use the ex variant to disable visual mode.
Did you actually understand what I was trying to say or did you just feel like explaining what "vi" means? Vi does not have a Visual Mode. Vim does. You enter Visual Mode when pressing the "v" key, when not on Command Mode, Insert or Append mode. This feature was added in VIM. You may have your vi editor symlinked to vim, as most distros do, so when you type "vi", you are actually using "vim".
I just started vi in my machine and pressed "v" and I get: "v isn't a vi command".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.