Vim in Linux is an enhanced version of VI. Need to download the installation yourself. After installation vim supports its own configuration and various plugins. Sometimes we see the source code need to look at both. h and. c files. It's
Open the VIMRC file.VIMRC files in ubuntu1204 in the/etc/vim/directory, the VIMRC in this directory is the global vim settings, if only one of the users to change the vim configuration, open the user root directory (that is, ~/ directory) under the.
NYW//Copy the cursor after n wordsD//Delete to the end of a line D $ //Delete to end of a line (price on command) 1, move by Screen (1) The following commands are most
Sometimes tools are too powerful, but getting started is difficult.Vim Command DaquanThis is the existence of VIM .In order to exercise the ability of the naked eye to debug and write the correct code, I decided to write code with a text
Operator+motion=actionIn vim, d{motion} commands can delete a single character dl , or you can delete an entire word daw , the entire paragraph dap . The same can be used c to change words caw or exercise with commands cap . ycommands are similar to
HJKL Lower left upper rightB/b move forward one wordw/w Move backward One worde/e Move backward One word0 move to the first non-empty letter^ Move to the beginning of the line $ move to end of line i/i InsertCC/C ChangeO/O inserts a blank line in
Compose repeatable ChangesThere are many ways to implement an action in Vim, but choosing a method that performs the least steps can make the method more repeatable.The following text we want to delete nigh.1) Delete BackwardThe cursor starts at H
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,
Well ... The following games are basically under the NOI Linux, the development environment under Windows can not be used >_> decisive turn vim, record the vim configuration file ~1 Set Nu2 Syntax on3 filetype indent on4Set shiftwidth=45Set tabstop=4
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
Last night + this morning, I was furious with a shell script about Vim's automated configuration, and I saw a similar script project on GitHub before, and then I saw a brother in the same school who wrote a similar script file, Then I also draw a
First, with a good system to bring software Ctags most of the UNIX system has ctags software, it can work well with vim. Purpose: Generate C language tag file, implement the jump between related C files. Usage: 1. Generate the label file in the
Trace Your Selection with Precision Text ObjectsFor brackets, quotation marks, and so on, such as the labels in Html,xml, are paired, Vim can understand this structure, and select the text of their restricted area.For the following JS codeExecute
Search to NavigateAnother way to quickly locate somewhere in Vim is to search for word using the symbol/followed by word you want to search, as follows:It can be seen that multiple matches are displayed after the command is executed, and we can use
These days, I've been learning python,A few days ago, when I was doing my exercises, I was thinking of adding an IF clause to the Python method body.However, if the following line, all need to do indentation, so, I in the Vim editor, lost the string
# Apt-get Install vim installs vim in Ubuntu systemDisplay line numbers, highlighting, and so on:The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRCIn the terminal, enter the following
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
Join talkVim (22nd back: Vim finale)
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced the NerdTree in Vim
Plug-in .. In this case, we will not introduce the new Vim plug-in. However, we
Join talkVim (14th back: Vim plug-in configuration file)
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we summarized the "Dragon knife: Vim"
Various methods. In this case, we will not talk about Vim'
Vi-vim basic operationsVi-vim Editor: Full Screen Editor and modular EditorVim mode:Edit mode (command mode)Input modeLast Row mode (bottom row Mode)Mode Conversion:Edit mode --> input mode:I: Enter it before the character of the current cursorI:
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.