Basic commands
C-x c-f Open/ new file C-X C-s save current buffer C-X C -W Current buffer Save as C--X C-v Close the current buffer and open the new file C-x i insert the file at the cursor C-x B Toggle Buffercx C-b display buffer list C -x k Close current Bufferc-x c-c off Emacs
Window commands
2 Horizontal Split pane C3 vertical split pane C0 Close Current windowC-x o Toggle window C 1 Close Other windows C52 new window C5 F Open file in new window
Cursor Move command
C-F forward one character C.-b back one character C-p Previous line C-n next line M-F forward one word m -b back one word C-a beginning C-e line end C-v down one page m-v Up one page m-< file Header M-- End of file
Edit command
C-Space set start tag c.[email protected] Set start tag (c-space may be blocked by operating system) M-w copy tag area contents C- y- tack m-u make the word at the cursor uppercase M-l make the word at the cursor lowercase m-C causes the word at the cursor to capitalize the first letter C-K Delete a row
Search/Replace command
C-S down-searchfor m-% replace - space/y replace current match - del/N do not replace the current match - . Replace only the current match and exit - , Replace and pause (press space or Y to continue)- ! Replace all matches - ^ return to previous match - return/q exit replace
Emacs Common Shortcut keys