1, Visual Block Region selection, where the visual representation of visual, image, visualization. 2, lowercase V: Character selection shift+v (capital V): Row Selection Ctrl + v.: Rectangle selection from top to bottom, the selected area is getting
Shift+v Select the row, then the upper and lower keys, select the code blockMove code block around shift+> or shift+U fallback any actionVim Configuration' tab to 4 spacesset smartindentset tabstop=4set shiftwidth=4set expandtab ' not automatic
For the CP, it requires sudo to operate, because you do not necessarily have permissions for this file operation, you can use Cp-i to consult whether you need to overwrite directly, you can use Ls-l to view the file permissions, and for different
Vim's Youcompleteme (abbreviated YCM) plugin is a code hint completion plugin that makes it easy to build a lightweight IDE with VIM. But it has been a bit bumpy to hear about the success of the installation tonight. The official website of the
Here is a Chinese entry document, but too long, do not want to read, so there is this article
The quickest way is to find a syntax similar syntax highlighting file, a little change
Write your own words first, the key words:
Case "
Introduction to VimVim (vimsual) is a universal full-screen editor in the Linux/unix series OS.Vim is divided into two states, the command state and the editing state, in the command state, the character system typed as a command, such as: Q for
1. Open a new tab page: Tabe[dit] {file}2. Close the tab page: tabc[lose][!] Closes the current tab page.The following scenario causes the command to fail:-There is only one tab on the screen. *e784*-If ' hidden ' is not set, there is no [!], the
A text editor is the most commonly used tool in all computer systems. Unix under the editor has ex,sed and VI, among them, the most widely used is VI, and the VI command a lot, the forum seems to be summarized in this respect, the following summary,
Http://www.cnblogs.com/ini_always/archive/2012/03/03/2378554.htmlCopy the VIM profile _VIMRC under Windows to your Mac and re-command it to. VIMRC, which is expected to implement a shared profile. But when I started vim, I reported not a editor
Command:%S/PATTERN//GNParameter description%-operating interval, full text; You can use 1, $, or line interval overridesS-substitutePattern-Query string-No alternative text. If you prefer, you can add any character in the middle! Suggest adding ' ~ '
The first level of the concise Vim training strategy-survival
Install Vim
Start vim
Don't do anything! Please read first
Once you've installed an editor, you'll want to enter something in it and see what the editor looks like.
1. Edit another file": Write Edit Foo.txt": Save changes to the current file and open ' Foo.txt '": edit! Foo.txt ": Discard changes to the current file and open ' Foo.txt '": Hide Edit Foo.txt": Temporarily do not save the current file, and open '
In order to use the pathogen plugin, I removed the. Vim folder and the. VIMRC add configuration and re-organized the next! 1, pathogen plug-in management Https://github.com/tpope/vim-pathogen run the following command mkdir-p ~/.vim/autoload
Common operations for VimI. Find and Replace in vim
Modify when moving forward:s/str1/str2/Modifies the first str1 of the current line to STR2:s/str1/str2/gModifies all str1 of the current line to STR2
Modify line N to line
Speaking of the text editor, you have to say that the vim of the old age, say, but also Hale, still have a lot of advocates. It is true that vim is practical, and the advantages of VI are listed first.1, if the master of vim, you can save the mouse.2
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
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
The VIM compiler provides commands that can set their environment properties.use under the terminalVimwhen editing, by default, the editing interface is not displayedLine number, syntax high brightness display, smart indentand other functions. In
Vim practical skills One, vim three modes normal mode edit mode Command mode Two, vim simple operation Normal mode: move: H: Move left J: Move K down: Move up L: Move from + u: Move up half screen + D: Move down
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