Saturday, November 9, 2013

Re: Bash's vi command line editing mode

On 9 November 2013, Tim Chase <vim@tim.thechases.com> wrote:
> 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.
[...]

One more thing: if you dislike the ^X^E sequence you can override it
by binding "edit-and-execute-command" in your inputrc. Example:

"\ev": edit-and-execute-command

/lcd

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