On Wed, Aug 4, 2010 at 9:46 AM, Tha.Suresh <[email protected]> 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.
Actually, it would open the user's editor, i.e. which ever is
pointed to by the $EDITOR var. So, not just vim, but any preferred
editor can be opened this way for editing the command. But given that
a shell like bash by itself supports editor key-bindings, it should be
easy enough to do it in the shell itself(at least for bash). By
default, it is emacs key bindings and can be set to vi as well. Thanks
--
Thank you
Balachandran Sivakumar
Arise Awake and stop not till the goal is reached.
Mail: [email protected]
Blog: http://benignbala.wordpress.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc