Daily common to multi-line merging functions, recorded as follows:First, multiple lines are merged into one line, namely:AAAAAbbbbbCccccMerge to:AAAAA bbbbb CCCCCMethod 1:normal State 3J where 3 is a range, can be a bookmark or search location, and
Modify ConfigurationIf you want to modify the configuration of the global vimvim /etc/vim/vimrc
1
However, this is not recommended and can only be modified by the current user's vim configurationvim ~/.vimrc
1
Add the
Vi/vim is the editor that is provided by default for all Unix/linux operating systems. Due to its powerful functions and efficient operation, Vi/vim has become one of the many editing tools that unix/linux users and administrators must master and
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
Basically, Vi/vim is divided into three modes, namely, General mode, edit mode and command-column mode. The three modes of action are:
General mode:Open a file with VI directly into the general mode (this is the default mode). In this mode,
Vim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact, the real enemy from the different variants of Emacs. 1999 Emacs was selected as the
The last time we talked about how to configure tabs/spaces in vim. Recently, many web pages are written. You do not want to replace the tab when editing HTML, and one tab occupies two spaces. You still need to use four spaces when editing other
1. Temporary Modification
In VI, set tabstop = 4 or set Ts = 4
2. Permanent modification
Vi -- version: view the file to be modified
If it is vim, modify ~ /. Vimrc
If it is vi, modify ~ /. Exrc
Add: Set tabstop = 4
Set nu // display
V1. the default character encoding is utf8. To open a file encoded with gb2312, all Chinese characters are garbled. How can I restore the normal display?Enter edit ++ ENC = cp936
V2. how to execute commands in the vim system?Enter! CMD
V3
Preface
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI, we often use different variant software on different machines, among which Vim is relatively easy to use and widely used. Vim is short for VI
1 download: http://www.vim.org/scripts/script.php? Script_id = 1, 3112. decompress the grep. Vim file to the/usr/share/Vim/vim70/plugin folder.3. Help: In the grep. Vim File Header4 usage:The following describes its usage:Vim has its own search
Vim getting started shortcut
Luo chaohui (http://www.cnblogs.com/kesalin)
This article follows the "signature-non-commercial use-consistency" creation public agreement
Vim and EMAC are both powerful tools. Some time ago, I decided to
Vim/VI Practical Skills
1. Import files
: R [file name] # import to the currently edited File
For example, R/etc/inittab
The upper part of the file is the/etc/services file, and the lower part is the/etc/inittab file.
2. Run the command [do not
Xshell is a very good tool for embedded development. However, it may be a bit uncomfortable to see Chinese characters as garbled characters. The solution is actually very simple, that is, to change the xshell encoding method to UTF-8.
[File]->
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
This is even worse. In the words of csloud itself-"you can think of it as a ctags that exceeds the frequency", its functions and power are evident, I will not elaborate on its introduction. If you have installed the help manual in Chinese described
My blog post posting process:
1. Write an original article in vim or post a classic article you have seen;
2. After writing in Vim, arrange the version, and then perform the shortcut key operations: GG, Shift + V, Shift + G,
"+ Y, explanation:" +
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