/* This article has been by default you have passed Vimtuor training and can skillfully use most of the commands. This article is mainly for the summary and carding of the Tutor command. Suitable for learning side-by-side memory tutor that's a
Configuration file. vimrc1Set tabstop=42Set softtabstop=43Set shiftwidth=44 Set Noexpandtab5 Set Autoindent6 Set Cindent7Set backspace=28 Set Nu9 TenSet nocompatible"Be improved, required OneFileType off"Required A - "set the runtime path to
Vim EditorText editor, word processor ASCIIFull screen editor, modal editorVim modeEdit mode (Command mode)Input modeLast-line modeMode Conversion:Edit-InputI: Convert to input mode in front of all characters in the current cursorA: After all the
VI into VIM, the following # number indicates the numberFullselectedThe correct answer is:GgvgExplain the above command a little bit.GG lets the cursor move to the first line,VimOnly valid, VI invalidV is entering visual (visual) modeG cursor moves
Set auto indent: Set autoindentSet indentation Level: Set Shiftwidth=n (n=1,2,3 ...) Indent several spaces.Turn off Auto indent: Set noautoindent1. How to editPressing the ESC key at any time will enter normal mode. In normal mode you can press: to
This chapter we learn the automatic completion function1. Auto-Complete priority gets the complete list from the current edit areaFor example:Let's write down the following:AaaaaaabbbaaabWhen we enter AA again, and then we press TAB, a list
A. Mobile:H,j,k,l: Left, bottom, top, right.W: The first word of the next word.E: The ending of the next word.B: The word head of the previous word.Two. Jump:%: Can match {}, "", (), [] jump between.H, M, L: Jumps directly to the top, middle, and
NERD Tree Directory plugin
• Introduction to PluginsNERD Tree is a vim TreeView File Explorer plugin. NERD tree allows you to navigate through your file system in vim and open the desired file or directory.• Plug-in installation? Download Nerd
Although today is National day, but study can not stop, today is learning is liunx, more important 2 editor, VI and Vim, perhaps someone asked why to learn these 2? There is no easy-to-use Nano.Mainly because there are some other liunx version,
Transferred from: http://www.cnblogs.com/chenyadong/archive/2011/08/30/2159809.htmlTo facilitate the selection of text, VIM introduces Visual (visual) mode. to select a piece of text, first move the cursor to the beginning of the paragraph, press v
Vim supports window segmentation and tabbed pages, and using these two features appropriately makes the text editing tool more enjoyable.1. Window segmentationVIM supports horizontal and vertical segmentation of Windows. The following are commonly
On the command line: H command and character to view the meaning of the command and characterFirst, mobileIn normal mode1.1. Moving and insertingH move one column to the leftL Move Right one columnJ Move down one columnK Move up one columnG the last
Set a color match by ColorScheme [Color.vim]For terminal, add set t_co= in. vimrcSome colors have different styles in the same file, see the comments in the specific scriptYou can use this vim-colorschemes plugin to get a lot of colorPlugin
Vim How to useVim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI.Learn about the three basic modes of VIM(1) General modeOpen a file with VI directly into the
Part I: General mode available button description, cursor movement, copy paste, search substitution, etc.
How to move the cursor
h or LEFT ARROW key (←)
The cursor moves one character to the left
J or
Vim: Full screen editor, modal editor
Vim mode: Edit mode (Command mode) input mode last line mode
Mode conversion:
Edit-Input: I is converted to input mode before the character of the current cursor. A is converted to input mode after the
SECURECRT will send your original text intact to the server in the style of the string. So when the vim on your server is set to Autoindent, in I mode, it will then indent the strings that are transmitted by SECURECRT. If you copy text that already
Normal mode is usually used to browse the text, in fact, the keyboard command to let the cursor jump in the text, in any mode press or two times will enter the normal mode.Basic ideasVim's positioning of the cursor is very precise and efficient,
The following command is limited to Noramal mode: Enter normal mode (bee mode, because in some cases, only according to this bee to determine whether in normal mode) ': Go to mark, jump to mark , ' x moves the cursor to marker x ~: Case conversion,
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