Vim is known as the ancient artifact. A small editor, the appearance is not very humble, the name of the artifact from? This is what attracts me. --In this memo.Vim is a free software that also admires the author's philanthropic behavior and helps
Several modes of VIM switchingInsert command
Command
Role
A
Insert in the word specifier the cursor
A
Insert at the end of the line where the cursor is
I
Insert in the word
Vim configuration file storage path: ~/.VIMRCThe file that starts with the dot (.), which is not displayed by default, requires the LS-A option. syntax onset nobackupset noswapfileset hlsearchset numberset rulerset expandtabset TabStop =4 set
Some basic and advanced operations on Vim can be found in the links below.Http://coolshell.cn/articles/5426.htmlWhen using Vim to edit text, it involves bulk substitution of text content: s/vivian/sky/replaces the current line the first Vivian is
Problem:Linux System, Tab key defaults to 8 characters, you need to change it to 4 characters in a way that usesSteps:1. Create a system file with a. vimrc file name under the user's root650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/77/
The global command can be used to format the EX command on the matching line in the specified mode:: [range]g[lobal]/{pattern}/[Cmd]range-is the execution range (if default, is%) Global- command keyword pattern- match content cmd -ex command
(1) Press ESC, then 123GG jumps to 123 lines (2) Input: line number jump to the line you want! ###############################Add, delete comments:Note: Ctrl + V enters column-editing mode, moves the cursor down or up, marks the beginning of the
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
As an old and enduring editor,Vim has its own strengths. Many people think that Vim's learning curve is too steep, in order to be able to use VIM, have to memorize a large number of commands. If you are new to Vim, just start to face a vast amount
New VIM script to automatically add author information (script)Vim/etc/vimrc################### #尾部添加以下代码 ###############################Map ms:call addauthor () ' sfunction Addauthor ()Let N=1While n Let line = Getline (n)If line =~ ' ^\s*\*\s*\s*
When writing a program, it is often necessary to start writing a brief introduction to the program and the author's information, as follows:This kind of information, in addition to the file name and modification time may often change, other basic
Recovery is simple in vim, but it's hard to recover to a specific time period.In my experience, sometimes using recovery is better than deleting the rewriteHere we talk about the use of restore, Undo, and repeat commandsu undo Last
In the previous section we talked about the movement in vim, since it has been able to navigate between the screen and the cursor.So, let's talk about the insert command now.I do not know how many new vim novice and I was (last year), vowed to think
Installed operating system generally with vim editor, but the default does not support GB2312 Chinese, open file garbled, the solution is as follows.1. Open the following filesudo vim/var/lib/locales/supported.d/local2. Add the following:Zh_cn. GBK
Vim Editor Detailed http://www.cnblogs.com/softwaretesting/archive/2011/07/12/2104435.htmlVim filename can create a file named filenameVim file1 file2 file3 can create multiple filesUse in VIM edit window: Open file, opening a document in the Vim
This article describes the basic use of VI (VIM), but for the average user is basically enough! I/vim the difference is simple, they are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not only compatible with all
/************************************************************************************** * VIM Ctr L-v Conflict with Windows Paste * Declaration: * This article is primarily intended to document the problem that CTRL + V cannot enter visual block
Windows vim using the Vundle management pluginFirst install Gvim and Git, add the C:\Program files\git\cmd to the PATH environment variable, and then execute it in cmd:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundleAdd the
Windows Vim uses Vundle, reported "E303, cannot open * * Exchange file, recovery will not be possible" solution.Under Windows vim using Vundle, the "E303, cannot open * * Exchange file, recovery will not be possible", such as:650) this.width=650;
Using vim to open a file, Swap file ". nginx. conf. swp" already exists always appears!Fault: When you use vim to edit the nginx configuration file, the swp file always exists: When you use vim to edit a file, a swp file is generated. FILENAME. swp
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.