Linux study notes (2)

Source: Internet
Author: User
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 $

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.