1

I was looking to bind " to automatically insert a pair and put the cursor in the middle. Theoretically, like this:

"\"": "\"\"\C-b"

But this would act recursively causing this error message to pop up upon trying:

readline: maximum macro execution nesting level exceeded

So I wonder if there is a way to limit the macro so it will be non-recursive like vim's ?noremap.

I didn't find anything in the GNU documentation.

1

Assuming you haven't change the default binding for C-v as quoted-insert, you can prefix each " with that input quoting character:

"\"": "\C-v\"\C-v\"\C-b"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.