>
> is there any way to use the familiar :map and :ab commands when running bash
> with "set -o vi"?
>
> for example, if i want to map the following:
> :inoremap ( ()<left>
> how is it done?
>
> can bash "understand" vi-like commands?
>
> in other words, are the readline commands the ONLY solution, or is there
> another way to map keys in bash?
>
> thanks
> alex
>
"Bash in vi mode" is not Vim, it's bash using some Vi-like key bindings
(instead of its default Emacs-like key bindings) for command-line
editing. IIUC, bash has no ex-commands, and therefore no ":map" or
":abbrev" command. It has _bash_ commands though (external, aliases,
builtins, functions, there are several kinds). So, I think the solution
is to bone up on the bash manpage, and see if it can help you.
Best regards,
Tony.
--
BLACK KNIGHT: None shall pass.
ARTHUR: I have no quarrel with you, brave Sir knight, but I must cross
this bridge.
BLACK KNIGHT: Then you shall die.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--
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