Making terminal behave like Linux

From Devipedia

Jump to: navigation, search

Don't every lose this...

http://www.sems.org/2011/03/making-mac-os-x-terminal-behave-like-doslinux/

Fire up your Terminal, go to Preferences -> Settings – Keyboard and modify the following keys, so that their action matches the value shown. You can edit the keystroke for an item by double clicking on it, selecting “send string to shell”, and typing the indicated keys.


Key Action Keystrokes

control cursor left \033b ESC b

control cursor right \033f ESC f

end \005 CTRL+e

home \001 CTRL+a

page down \026 CTRL+v

page up \033v ESC v

Also, VIM won't have the proper behavior by default, so add this to your .vimrc:

set nocompatible "must be first line

Personal tools