Fun with Ubuntu (Emacs editor entry)
Author CodeAllen , please indicate the source
installation
sudo apt install -y emacs
Run command line mode
Enter the graphical interface without adding parameters
emacs -nw
Create and edit files (basic method)
Ctrl + X, Ctrl + F // Enter the new file name in the bottom echo area, and press Enter to enter the edit mode
Ctrl + X, Ctrl + S // Save the file
Ctrl + X, Ctrl + C // Exit emacs
But in actual use, more shortcut keys are used
Tab: Tab key
Res: Enter key
S: shift key
C: Ctrl key
M: Alt key
Spc: Space key
Del: Backspace key
So the previous command can be reduced to
Ctrl + X , Ctrl + F ==》C + X , C + F
Ctrl + X , Ctrl + S ==》 C + X , C + S
Ctrl + X , Ctrl + C ==》 C + X , C + C
Some high-frequency shortcut keys
C + H: Go to the online documentation for help information
C + XK: Close the currently edited cache
C + XC + W: Save the file as
C + X 1: Display one window
C + X 2: Display two windows
C + A: Move To the beginning of the line
C + E: Move to the end of the line
M + A: To the beginning of the sentence
M + E: To the end of the sentence
C + XU: Undo one operation
M + X linum: Display the line number