Friday, April 27, 2012

Re: how to send command back to the command line after typing 'v' from linux command line in set -o vi mode?

On 27/04/12 20:35, pixelterra wrote:
> I recently found this out:
>
> "Suppose you typed a longer command and you noticed that you had made several mistakes, and wanted to do the correction in the vi editor itself. You can type 'v' to edit the command in the editor and not on the command line!"
>
> But after I edit the command in vim, how do I get that command back to the command line? Or do I have to copy / paste manually?
>


What happens if you leave Insert mode (e.g. by <Esc>) then type :x
(followed by <Enter>) in your Vim editor?


Best regards,
Tony.
--
Pittsburgh Driver's Test

(7) The car directly in front of you has a flashing right tail light
but a steady left tail light. This means

(a) one of the tail lights is broken; you should blow your horn
to call the problem to the driver's attention.
(b) the driver is signaling a right turn.
(c) the driver is signaling a left turn.
(d) the driver is from out of town.

The correct answer is (d). Tail lights are used in some foreign
countries to signal turns.

--
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