51_emacs commands - normalform/freebsd_setup GitHub Wiki

basic

  • cancel: c-g
  • quit: c-x c-c
  • suspend: c-z --> resume $fg

cursor

  • move to start: c-a
  • move to end: c-e
  • move to top: m-<
  • move to bottom: m->
  • page up: c-v
  • page down: m-v
  • recentering: c-l

undo

  • undo: c-_ or c-x u
  • redo: c+g (cancel or any other char) then c-_

copy & past

  • kill-ring-save: m-w
  • kill-region: c-w
  • yank: c-y

save buffer

  • save to file: c-x s

deleting text

  • kill-word: m-d
  • backward-kill-word: m-BS
  • kill-line: c-k

select text

  • set-mark-command: c-SPC
  • mark-whole-buffer: c-x h

Search

  • c-s then type, then c-s or c-r to jump