Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:QX starts recording the macro and registers the result with the Register XQ Exit Record mode@x playing macro
1. Use the VIM comparison mode to open two files:vim-d file1 file2OrVimdiff file1 file22. If you have already opened the file File1, then open another file file2 to compare:: Vert diffsplit File2If you do not use the vert command, the diffsplit will
1. Move the cursor to the position where you want to operate.2. Press CTRL + V into "visible" mode and select the column to operate on each row.Select multiple Coulmns using left/right arrowSelect multiple rows using Up/down arrow3. Enter SHIFT + i
First, install VIM.1. No network conditionsMount CD to MNT under Mount/dev/mount/mntThen use the RPM command to install the rpm-ivh/mnt/packages/vim-common-7.2.411-1.8.el6.i686.rpm/mnt/packages/ vim-enhanced-7.2.411-1.8.el6.i686.rpm2. Network
Move HJKL ctrl+udbf f+ character: Moves backward to the specified character f+ character: Moves forward to the specified character Example: FG moves to letter G 0dfH: Delete From the beginning of the line to the first H Move in Word W Move head
Three different modesCommand mode (edit mode): The default mode after opening the editor, you can move the cursor, delete and so on.^: Jump to the first non-whitespace character at the beginning of a line$: Jump to end of lineGG: Jump directly to
Vim is a strong to no friends of the text editor, often using Vim editor friends must have a deep experience. Here are some simple vim configurations.(1) Vim ~/.VIMRCEdit the following to save the exit.(Note: Osx/ubuntu/centos/redhat test
I. Buttons available in general mode1. Cursor movementh or LEFT ARROW key: The cursor moves one character to the leftJ or DOWN ARROW key: Move the cursor down one characterK or UP ARROW key: The cursor moves up one characterL or RIGHT ARROW key: The
1. Hit two times the letter D removes the cursor from the row2.vim + filename Open file positioning cursor at the end of the beginningVIM +n filename cursor positioned on nth rowVim +/xxx filename navigates to string xxx first occurrence line3.vim
Enter the following text in the. VIMRC (or/ETC/VIMRC) file: Set tabstop=4 set softtabstop=4 set shiftwidth=4 set Noexpandtab set nu set autoindent set Cindent: Tabstop: Indicates the length of how many spaces a tab appears to be, default
The first is a simple understanding of the three states (which are generally accepted as patterns), namely: Insert, view, and general.After entering vim, the default is the general mode, when the direct use of ' a ', ' I ', ' o ' (that is, enter the
JsbeaufityReference: Https://github.com/maksimr/vim-jsbeautify1) According to the author's instructions is mainly to install js-beautify with bundles and then use the relevant function key mapping on it;2) The main problem is that when running on
Use of the editor:ESC Command modeA insert mode (rear insert)I insert mode (front insert)o Open a new line below the current line and enter insert modeO open a new line above the current line and enter insert mode: Edit modeV Visual modeCommand mode:
The final exam this time = = Water break, now ready to transform vim.First you need to understand the difference between vim:http://coolshell.cn/articles/5426.htmlAnd then you must have been in the bare vim water a pitch? Must have found some
When installing vim via source code, the terminal libary is missing.After installing ncurses, this problem still occurs.After finding the data, the following command can be used to install vim properly.env
Ctags-r the root directory to generate tagsAdd set tags=/.../.../tags in. vimrcCTRL +] JumpG CTRL +] cross-directory jump: TS Lists all: TP jumps to the previous: TN jumps to the nextTlist InstallationDownload the latest version of TagList plugin to
When using vim for editing under the terminal, by default, the editing interface is not displaying line numbers, syntax highlighting, smart indenting, and so on. In order to better work under Vim, a configuration file needs to be set manually:.
This theme looks a little dirt, you are a program ape, even all day will be configured, build, compile, play vim. You've been mixed up for almost 10 years, how do you write code? Ashamed to say, why write this, because this compilation bothered me
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