All standard text views in Mac OS X are based on the UNIX text editors. Standard text views are used in every standard Mac OS X application but also 3rd party software like FireFox, Sublime Text or Coda. Here some items about unix text editors and their key commands:
- return key inserts a linefeed. UNIX uses linefeed as line terminators.
- ctrl + a is to the beginning of the line
- ctrl + e is to the end of the line ctrl
- ctrl + b moves the cursor back one position
- ctrl + h deletes character before cursor (same a backspace)
- ctrl + w deletes word before cursor
- ctrl + u deletes line before cursos
- ctrl + f moves the cursor forward one position
- ctrl + k deletes line after cursor
- ctrl + y paste (not the same contents as Mac OS X’s clipboard)
…
just to name a few. ctrl + k and ctrl + y is also known as kill and yank, what you delete with ctrl + k can be pasted somewhere else with ctrl + y.