Vim/etc/vim/vimrcSet Nu "Show line numberSet Novisualbell "Do not blinkThe set nocompatible "remove the nasty about VI consistency mode, avoid some bugs and limitations of previous versions55 "Show Chinese helpIf version >= 603HELPLANG=CN
In vim to edit the code want to copy out to the browser or other places, with YY copied to another place to stick to find that is not the original copy of the content, very headache ...This is because VIM has its own set of Clipboard systems
In vim to edit the code want to copy out to the browser or other places, with YY copied to another place to stick to find that is not the original copy of the content, very headache ...This is because VIM has its own set of Clipboard systems
The following no special instructions are in command-line mode1: Turn line numbers on and offAfter pressing the Escape key to enter command mode,: Set number command to turn on line numbers expand: Enter command mode to &NBSP: set all command
工欲善其事, its prerequisite. In the development process, convenient and fast development environment, can improve work efficiency; A beautiful interface can make us happy, and most importantly, to keep us in the deep and unpredictable of the layman ~If
= = The line number of VIM, syntax display and other settings (configuration of. vimrc files) = =January 18, 2008 Friday 23:01When using vim for editing under a terminal, by default,The editing interface is not displaying line numbers,
Use of the VIM editorCommands used by VIM
: Q Exit VI directly:
Wq exit VI after saving, and can create new file
: q! Force exit
: W file saves the current content as a file
: Set Number | NU Displays line numbers in edit
http://my.oschina.net/laserdance/blog/53474 a lot of win under the compiled configuration file (decoding format has UTF8/GBK) uploaded to the Linux server when the Chinese characters garbledHere's how to fix it:Modify the VI environment
The company server vim with the abnormal pain, write a few small scripts and do not want to use the IDE, so the simple transformation of vim, after trying to find the company's machine is vim6x, many plug-ins do not support, so simply reload into
ObjectiveVim has been used for 4 of years, has always felt that vim default color scheme is difficult to see, but it is not the mind to modify it.But recently in the study of Python, using a black background, but the code's comments are dark blue,
Everything has to start with this article.Vim It was a little bit like a sister of Lin. But who would like to have a sister at home, the light of her own girl as illustrated dress is not good, must start from scratch to form a. And even if it really
Enter the root and directory:CD/root
2. Create. vimrc (this file does not exist by default. Note that there is a "." point in front of the file name. Is a hidden file), the configuration content is as follows:Set hlsearch # High Brightness
You should have experienced adding the same thing to the entire content. For example, add a semicolon or colon to the end of each line.
Today I will share with you how to implement this scenario quickly and efficiently.
For example
Line one
Line
Vim mode Introduction
Introduction to Vim's three modes
Vim has three working modes: Command mode, insert mode, and baseline mode.
Command mode: Enter the vim command and start Vim to enter the command mode by default. At this time, all keys are
General replacement
S/old/new--- Replace the first matching item of the current row
S/old/new/g---- Replace all the matching items in the current row
Number1, number2-s/old/new/g---- Replace all the matching items from the number1 row to the number2
Labels: common Linux Vim commandsZookeeper
First learned vim, see http://blog.csdn.net/u011848617/article/details/12837873
After that, I once lost my skills. After learning again, I found that it is essential to master Common commands. Below are
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn
1. You cannot see the tab key in the tab key file. To display it: set list now displays the tab key as ^ I, while $ is at the end of each line, so that you can find the spaces that may be ignored. One disadvantage of this is that it looks ugly when
1. display the tab key
When the file contains the tab key, you cannot see it. To display it:
: Set list
Now the tab key is displayed as ^ I, and $ is displayed at the end of each line, so that you can find the spaces that may be ignored.One
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.