Visual Mode 1. Introduction to Visual Mode commands
Enter in normal mode v (lowercase), enter the character selection mode, you can move the cursor, where the cursor will be selected. The selection is deselected when the V-meeting is
Note content:L 5.1 Vim Introduction L 5.2 Vim color display and move cursor L 5.3 Vim general mode move cursor L 5.4 Vim general mode copy, cut and paste Note Date:2017.8.45.1 Vim Introduction Vim is a similar toViThe well-known powerful, highly
Insert
I insert before the cursor
A after the cursor is inserted
Turn over a full page at a time
Turn up page ctrl+f "F" meaning forward
Scroll down full page ctrl+b "b" meaning backward
Turn half a page at a time
The text object of Vim is made up of two characters, and the first character is always i or a . In general, text objects that start with the text i selected inside the delimiter, and the a text object that begins with the selection, selects the
Vim commandYY: The line where the cursor is copied4YY: 4 rows starting at the beginning of the row where the copy is locatedP: PasteDD: The line where the cursor is clipped2DD: Cut cursor line down 2 linesDW: Cut a wordD: The contents of the current
How to set Vim's personal preferencesThe default VI many features are not open, we can customize the VI as needed, you need to modify the vi configuration file, the global configuration file in/ETC/VIMRC, but generally only need to modify the user's
Let's look at the color configuration scheme provided by the VIM editor:First enter the VIM's color directory (/usr/share/vim72/colors, different system directories, it is recommended to set up in ~/. Vim directory, and then in some directories to
For the first use VI, there are a few notes to remind:1. After opening the file with VI, it is in "command mode" and you want to switch to "insert Mode" (Insert mode) "to enter text. Toggle method: Under Command mode, press aThe next letter "i" can
5.1 Vim Introduction1) Vim is the upgrade version of VI, with color display, also divided into general mode, editing mode, command line mode; Installation Instruction pack, install only oneyum install-y vim> This method installs multiple VIM-related
Vi/vim:Edit Mode insert modeSet line number: Set Nu:set NonuLine number move: GG G ng/:nMobile: H, J, K, L 0 $ H, M, LSearch:/"Characters searched" n Next n ignored case: Set ICCopy yy/y Nyy/nyCut dd ndd Paste p/pReplace:R R + ESCFull-text
How to set it up:Keyboard by using the tools, options, and Settings in the VS menu bar.
Common shortcut keys:
Recommended keys
Edit. Go To Definition
Alt + G
A text editor under the command line of the Linux systemThree different modesGeneral mode: Opens the default mode for a documentEdit modecan be edited to enter edit mode from normal mode by pressing I-O-R lettersPress ESC to exit edit modeCommand
Reference https://www.fprintf.net/vimCheatSheet.html1. Exit Operation:: Q Exits when the contents of the file are not changed, and exits if there is a change in content: q! Force quit does not save: CQ forced exit does not save: Wq Save and exit: wq!
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/25/wKiom1mMALfQw94QAABOR7DbIW0153.png "title=" 2017-08-10 07.png "alt=" Wkiom1mmalfqw94qaabor7dbiw0153.png "/>Vim when editing the file if you suddenly disconnect when you modify the
This post was transferred from: Http://www.cppblog.com/runsisi/archive/2013/04/06/199152.html?Opt=admin12 The last day of the year configured the company Rhel vim, the company's network does not agree to upload things and outgoing mail. So sum up
In the Linux environment Editor has VI, VIM, gedit and so on. After entering these editors, to make it easier for us to need the editor to display the current line number, the editor will not display the line number by default. There are two ways we
1) command-line mode: The typed content is interpreted as a command.2) Insert mode: The type of content is inserted into the file.3) Visual mode: Select, cut, and copy text from the keyboard.4) Ex mode: Use more commands (for example: storing files,
Find
Replace
In normal mode1. If you want to replace only one letter, enter FA to find the next letter A, enter r and type the letter you want to replace a.2. If you want to go directly to edit a lot of letters, enter R, enter the REPLACE State,
Suppose you have the following data, separated by a space for the data column:1 Hevichuan 124.63 172 0.722 Zhang Ziyin 99.67 172 0.583 Week Guang bin 93.34 188 0.504 Chen Xingdong 41.86 188 0.225   ; She
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