1 * Copyright (c) Level 2012, Yantai University School of Computer Science2 * All rights reserved.3 * Pay Record Super4 * Completion Date: May 15, 20155 * Version number: v1.06 * Learning topic: VIM Common commands7 * Working environment: Red Hat 5.8
First, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move to the end of the line $, move to the beginning of 0 (number),
As in the following section of codeWe are going to make the code more readable, and adding spaces before and after the + changes to the following:Make the change repeatablef+Executes the find character command on the current line, the S command
Vim as a custom-made editor, it is really very powerful, here I say in programming, using VIM and makefile some of the skills, just personal programming habits;When you finish editing the source code, want to compile links and other work, you can
Use the Counts to does simple arithmeticIn vim, execution and commands can be added or reduced directly to the numbers in the text.If you do not provide a number to directly execute the above command, the default is to add 1 or minus 1 of the
Fast Jump (cmd model) within Vim's line^: The cursor jumps quickly to the first character of the bank header .$: The cursor quickly jumps to the last character at the end of the bank.NW: The cursor quickly jumps to the header of n fields after
Meet the Dot CommandThe dot command lets us repeat the last change. It's the most powerful and versatile command in Vim.. command to repeat the last action on a text change.A first examplexcommand to delete the character under the current cursor,
Delete Around, or change InsideVim ' s text objects fall into II categories:those that interact with pairs of delimiters, such as i), I ", and it, and Those that interact with chunks of text, such as words, sentences, and paragraphs.The text object
Vim is a reinforced version of VI, it is recommended to use VIM.Vim has three different modes:Command mode (normal mode)After Vim starts, it enters command mode by default, and any mode can be returned to command mode by ESC. Command mode can be
Move word-wiseFaster left and right shortcuts in Vim in Word are:The visual display is as followsThese shortcuts can be used in conjunction with other commands to quickly select a word.Taken together, the ea commands can is read as "Appendat the end
1. Command CollectionMulti-window operation: SP File2Then it's the window switch.Ctrl+w--->jCtrl+w--->k!commandTemporarily leave Vim, execute command temporarily, several forms1):!commandDo not exit vim and execute shell command commands to display
Vim's search function is entered/started in normal mode, and Vim's search defaults to regular expressions. So mastering the use of regular expressions and regular expressions in Vim is extremely important for improving the VIM experience. Vim's
Function Description: Inserting consecutive numeric columns in vimLike what1,2,3,4,5,...100,Command: Use the Q command to record your own action sequence and then repeat the preparation:First enter the starting number, for example enter 1 and comma,
First, open the fileVim filename #打开文件, the cursor is placed on the first lineVim/pattern filename #打开文件, line with cursor pattern matchingVim–r filename #恢复上次意外中止的编辑文件Second, the general mode of cursor positioningCtrl+f #屏幕向下移动一页Ctrl+b
The version of Vim used in ubuntu12.04 does not support configurations such as syntax highlighting and file type detection#sudo Apt-get Install VimVim's default configuration is not satisfactory and requires its own configuration.The default
Both: pydictionPydiction allows you to implement TAB code completion in Vim, including: Standard, Custom, and third-party modules and packages. Plus keywords, bifs, and strings.The pydiction consists mainly of three parts:
Vim Normal mode under input:!python%% indicates the current file nameSet number shows rowsReference NetEase BlogAfter adding the following code to the/ETC/VIM/VIMRC, restart Vim to create 4 spaces by pressing TAB:set tabstop=4 set softtabstop=4 set
Description: The contents of this article as a record of their own environment, the content is basically found from the Internet, so the original author looked not too mind. In addition, I am a Mac computer, please refer to the attention of the
Under Windows is generally used sourceinsight, to good use, but I also play vim. Source Insight executes an external command that can define a custom key in the settings, Gvim of course it's also good to do, colon Plus! You can also add a shortcut
Use the shortcut key of linux vim to move the cursor.
Move cursor
H or left arrow: The cursor moves a character to the left, and the numbers and letters are used together. 5 h indicates that 5 characters are moved to the left, and so on.
J or
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