Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make alt-f and alt-b jump word forward and backward instead of printing ƒ and ∫ on Mac?

I understand that Mac has some Emacs keybindings enabled by default (e.g. Ctrl+A move to beginning of line etc.). If I open TextEdit for example I can navigate like in Emacs.

But when I try Alt+F or Alt+b for move to next word or last word it does not work. It prints out ƒ and instead.

Is there a way to jump words instead?

I think that I did not tinker with the keybindings and I use the US layout on a german keyboard.

like image 967
ayckoster Avatar asked Nov 22 '13 14:11

ayckoster


People also ask

How do you jump a word in Mac terminal?

ALT + F to jump Forward by a word. ALT + B to jump Backward by a word.


2 Answers

If you want to re-enable them for the terminal

Terminal -> Preferences -> Keyboard

Check 'Use Option as Meta key'

like image 110
Arran Cudbard-Bell Avatar answered Sep 17 '22 01:09

Arran Cudbard-Bell


my iTerm2 version is 3.1.6, profile -> keys -> set Esc+

enter image description here

like image 44
EasternXiang Avatar answered Sep 18 '22 01:09

EasternXiang