How to Use the column editing mode of Vim?
* Windows
I have been using Vim for windows. I have heard that Vim has a column editing mode and has never been used. I tried it several times and failed. Today, I went to the Internet to check my work
Sudo Vim/var/lib/locales/supported. d/local
The premise is that you have installed Vim (it's nice to use)
Open this file and write the font you want to install. Zh_CN.UTF-8 UTF-8en_US.UTF-8 UTF-8zh_CN.GBK gbkzh_cn.gb2312 gb2312
Run
Sudo
One day when I was reading something about vim, I found out why it uses the hjkl key as the direction key. When Bill Joy created the VI text editor, the machine he used was the ADM-3A terminal, which used the hjkl key as the direction key. Naturally,
Restoration in VIM is relatively simple, but it is difficult to recover to a specific time period.
In my experience, it is better to use restoration to delete and rewrite data.
Here we will talk about the use of recovery, revocation, and repeated
ESC: This is one of the omnipotent function keys in Vim. Basically, pressing this key at any time can return the normal state of vim.
I: In normal state, you can press I to enter the "insert" Edit state. At this time, press the direction key to
Lookupfile is indeed an unparalleled file search plug-in, but one problem has not been solved. After the query window is called up, enter the file name. After several matching files are found, you can only press Ctrl-N to move up and down. If I
1. Window/Tab
Switch directory tree: Ctrl + O or nerdtreetoggle
: B number jumps to the upper Tab
Reload Directory: nerdtree
Multi-Window Splitting:
(Reference: http://hi.baidu.com/dtzw/blog/item/64a6f3f2fc10721eb07ec590.html)
: New is a
1. Search
/XXX (? XXX) indicates searching for strings matching XXX in the entire document,/indicates searching down ,? It indicates that xxx can be a regular expression in the upward search. We will not talk much about the regular expression.
Open the JPG file with vim in Linux and use %! When xxd is displayed in hexadecimal notation, the file header is displayed as "3f3f
3f3f 0011 0804 "The end of the file is" 3f3f"
In Windows, the same operation is displayed as "ffd8 ffc0 0011 0804"
Some advanced editors will contain macro functions, which are certainly not missing in Vim. It is very convenient to use Macros in VIM:
: QX starts to record macros and saves the results to register xQ exit record mode@ X macro commands for
Disclaimer (read only !) : The original translations of all tutorials provided by this blog are from the Internet and are only for learning and communication purposes. Do not conduct commercial communications. At the same time, do not remove this
In VI/vim, you can use the: s command to replace the string. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
In vim, there are four encoding-related options:fileencodings,fileencoding、encodingAndtermencoding. In actual use, any option error may cause garbled characters. Therefore, each Vim user should clarify the meaning of these four options.
1. Encoding
1. In securecrt, when securecrt uses vim, syntax highlighting is not actually a function of securecrt, but a function of vim.
Settings: Options-> session options-> terminal-> in emulation, select ANSI or Linux or xterm for terminal. ANSI colour must
I saw an article about Vim two days ago, which was very exciting. Before that, I heard about Vim. Of course, for me, it has always been a legendary "God" editor.
Learning Vim seems to really be something to learn. It is too simple and not as easy to
1. Support for Chinese Encoding
Vim
To better support Chinese encoding, two features are required: + multi_byte and + iconv. You can use the |: Version | command to check whether the currently used Vim supports this feature. Otherwise, you need to
Sampeng asked,
Vim mail list?
In fact, I am very interested in the email list and newsgroups .. I don't want to work in Google or Baidu any more .. I wonder if you can advise me?
In foreign countries, many discussions are conducted through the mail
Question:With sourceinsight in Windows, you can easily locate functions, variables, and macro definitions, so that developers can manage project code and improve development efficiency. How can you perform similar operations in Linux.Vim can use the
In VI/vim, you can use the: s command to replace the string. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
Http://xbeta.info/vim-tutorials.htm
"General settings """"""""""""""""Set nocompatible
Filetype plugin onFiletype indent on
Set autoreadSet rulerSet nu
Set laststatus = 1
"Configure backspace so it acts as it shoshould ActSet backspace = EOL, start,
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