Emacs commonly used commands

Screen display control operation
ctrl + v to the next page of a text
ctrl + L where the middle of the screen cursor
alt + v to return to the previous page of text

Screen window is divided
ctrl + xn represents the n-th division window
ctrl + xo between the cursor switch the form
ctrl + alt + v scrolling another form

Screen cursor operation
ctrl + p on line mobile terminal
ctrl + n-terminal to the next line
ctrl + B cursor left one character
ctrl + F cursor right one character
alt + b cursor one word left
alt + f cursor right one word
ctrl + a move to the front row
ctrl + e moved behind line
alt + a move to a previous sentence
alt + e moved back to a sentence
alt - <moved to the front text
alt -> moved to the rearmost text

Screen scrolling
ctrl + u 8 Ctrl + v 8 rows scroll the screen up
ctrl + u 8 alt + v scroll down the screen 8 rows
ctrl + u 0 ctrl + L as the first line of the current row

Character editing
del delete characters before the cursor
ctrl + d after removing the cursor one character
alt + delete del cursor before a word
alt + delete the cursor after a word D
ctrl + k cut to remove the cursor from the end of the line
alt + K cut from remove the cursor to the end of the sentence
ctrl + u 2 ctrl + k delete two lines

Undo
ctrl + y returns the content previously removed (to paste the contents of the buffer location of the cursor)
Alt + y
ctrl + / Xu equivalent to undo previous ctrl +

Copy text
origin press ctrl + space or c + @ represents an origin of replication, move the cursor to the end point, press the alt + w copy the contents to a buffer system

File operations
ctrl + x ctrl + f to find the file
ctrl + x ctrl + s to save the file
ctrl + xs cache files
ctrl + x ctrl + b to view the cache file list
ctrl + xb file name to view the cache files
ctrl + x ctrl + c to save the file and exit emacs
Ctrl + xu return on operating

File search
ctrl + s input search character (after the search), then ctrl + s handover between the searched character, a character return del
ctrl + r input search characters (before the search), then the found ctrl + s switching between characters, del return a character

ctrl + g termination command operation
alt + x shell into the shell environment, the compiler may re-
alt + x gdb debugging code into the environment
alt + x eshell emacs shell environment into the environment, can be compiled

Guess you like

Origin www.cnblogs.com/lph970417/p/12177481.html