[Ilugc] [Tip] Edit The Command Line With Vim

  • From: Balaji Narayanan (பாலாஜி நாராயண (Balaji Narayanan (பாலாஜி நாராயண)
  • Date: Wed Aug 4 12:34:17 2010

On 4 August 2010 09:46, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:

Edit The Command Line With Vim

This is a quick (and great) tip I found at Daily Vim:

Open a linux terminal, and type some (long) command.
Now type [ctrl]+[x] and then [ctrl]+[e]
The command should be moved now to a vim window.
Edit the command (fix typos, change parameters, etc..) and save.
The command will now be executed. :)

You cn do most of the command line editing via readline.

set -o emacs or set -o vim

and most of the vim and emacs command line editing will work on the shell.

-balaji


-- 
http://balajin.net/blog
http://flic.kr/balajijegan

Other related posts: