Monday, November 1, 2010

Re: Using Bash in Vi mode. How to map keys?

In bash "vi" mode, one can press v and then get a full vim editor.
Then you will have everything you need.

Hope it helps,
Eran.

On 11/1/10, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
> On 01/11/10 19:23, aleCodd wrote:
>>
>> thanks for the reply.
>>
>> so what is the equivalent for the following:
>> ino ( ()<left>
>> using the readline module?
>
> I don't know. These are all bash questions, not Vim questions. Maybe a
> bash list or forum would be better than the Vim list. Have you read the
> bash manpage?
>
>>
>> and if you could please be more precise, is the readline library the only
>> utility for mapping keys in bush?
>>
>> if yes, is there any interpreter i can use to convert Vim's mapping
>> commands
>> to readline commands?
>>
>> One other thing, is there a way to change the cursor shape and color -
>> when
>> running bash in vi mode - so that the shape and size of the cursor would
>> be
>> different for different modes (insert/normal), like the 't_SI' or
>> 'guicursor' in vim/gvim..?
>
> no AFAIK, because bash is not a modal editor
>
>>
>> cheers
>> alex
>
> Regards,
> Tony.
> --
> The misnaming of fields of study is so common as to lead to what might
> be general systems laws. For example, Frank Harary once suggested the
> law that any field that had the word "science" in its name was
> guaranteed thereby not to be a science. He would cite as examples
> Military Science, Library Science, Political Science, Homemaking
> Science, Social Science, and Computer Science. Discuss the generality
> of this law, and possible reasons for its predictive
> power.
> -- Gerald Weinberg, "An Introduction to General Systems
> Thinking."
>
> --
> 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 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: