Saturday, November 9, 2013

Re: Bash's vi command line editing mode

On 2013-11-09 14:12, LCD 47 wrote:
> If you don't care about command line being modal, set
> "editing-mode" to "emacs". You can still edit the command line
> with "fc" (a bash internal command), or with C-x C-e. The program
> pointed to by $EDITOR is run for that purpose.

Even as a pretty die-hard vi/vim user, I still use "emacs" mode on
the command line and then use fc or ^X^E (as LCD47 suggests) if I
actually need to perform complex edits. I find this mirrors my
vi/vim usage, where I want emacs-like commands when actually
adding/entering things (Insert mode and command-line mode), but if
I'm editing by making complex changes, I want the full power of
vi/vim to do that. I can even use

:r ~/.bash_history

to read in the history of commands if I want to find/select/edit a
past command.

-tim




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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: