11 ① Info document structure Command: Similar to man & amp; 20284;, when more in-depth, run info without any parameters to list all page I
11. ① Info document structure Command: Similar to man. for more in-depth information, running info does not include any parameters to list all pages. the Info page is somewhat similar to the web site page, each page is divided into: "link node". there is a *: info passwd before a link node.
② Expand the document:/usr/share/doc Directory. many software packages are used to create sub-directories here, and the documents are not properly placed in other places.
13. ① introduction to vim three modes-insert mode. Vim supports syntax highlighting, and wi (standard unix text editor) cannot.
② Vim three main modes: command mode (default) (Core mode): Move the cursor, cut/paste the text, change the mode; insert mode: modify the text; Ex Mode (exit mode ): save, exit, and so on.
③ Create or open a file in vim: vim filename
④ Modify a file in insert mode: I start insert mode where the cursor is located;
14. switch and use the vim extension mode. ① Command mode to Ex Mode: ② command mode to insert mode use command I/a/o/O ③: Set all set all; Set number/nonumber set row number
Exercise: # man pwd | col-B> pwd.txt generate a file (pipeline, redirection) in pipeline)
# Vim pwd.txt is modified with the command I/a/o/O. run ESC twice to the command mode. if you exit the command mode, use: write quite =: wq. if you exit the command, do not save: q!
There are many other options: A append at the end of A row (append); I insert at the beginning of A row (insert); o insert A new row (below); O insert A new row (above)
15. ① basic usage and content search in vim command mode. Move the cursor in command mode: Direction + number;
Move by character: Direction Key, h j k l; move by Word: w, B; move by sentence :(); move by segment: {}; jump to row X: XG = Xgg; jump to the last line: G; lower case gg: first line; upper case GG: last line;
② Search and replace in command mode: find/, n, and N;
16. copy, modify, and delete the replace mouse operation in vim command mode: starting with a character ^; ending with $