I've did a serious research on Google Web and Stack Exchange websites prior asking the question, and come across to keywords and got acquainted with their meanings such as bind, bind -r, read, /etc/inputrc, ~/.inputrc \e, [A, [B, [C, [D, and GNU Readline what I didn't know about before.

I tried to disable myself but could do that only to partial effect.

What I really want is to completely disable Text Navigational Keys alongside Page Navigational Keys in Bash, and possibly in all consoles.

I do it because I want to enforce the Vim key bindings everywhere possible, and had already set set -o vim to benefit from Vim modes presence in Bash.

I think the most correct way would be achieving so through ~\.inputrc, tried, failed.

  • 1
    See this on Stackexchange Unix. – Ilker Mutlu Nov 10 '16 at 14:17
  • 1
    Thanks, it really worked, it seems :"" that part must follow the key codes inside the file to unmap them. I could map [H, [F, [5~, [6~ disabling the page navigation keys as well. – w17t Nov 10 '16 at 20:28

Since the link I provided worked, we can post it as an answer.

Adding the following to .inputrc will map the arrow keys to nothing.

$if mode=vi

Source: This Stack Exchange Unix Post.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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