help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] bash insert mode mappings


From: Sinbad
Subject: Re: [Help-bash] bash insert mode mappings
Date: Tue, 7 Aug 2012 09:13:21 +0530

hi clark,

fortunately this worked for me, i'm running GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu);
but i'm not able to avoid recursive mappings, the equivalent of inoremap in vim.
anyways thanks for the help.

cheers


On Mon, Aug 6, 2012 at 7:09 AM, clark wang <address@hidden> wrote:
On Sun, Aug 5, 2012 at 12:37 PM, Sinbad <address@hidden> wrote:
is there way of doing just like vim insert mode mappings in bash.
basically i want to certain key combinations to be mapped to certain text.
for example.

imap teh the 

is it possible to do this in bash.

Try like this:

  bind -m vi-insert '"teh": "The"'

But seems like this does not work (Tested with 4.0.28 and 4.1.9):

  bind -m vi-insert '"teh": "the"'

There must be a bug here.

regards






reply via email to

[Prev in Thread] Current Thread [Next in Thread]