Text editor VimVIM: (visual interface improved), is a full-screen plain text asscii Editor, is the enhanced version of VI, compared to VI, VIM support syntax highlighting features.Vim is a modal editor, common patterns are edit mode (command mode),
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 macro and registers the result in register XQ Exit Record mode@x playing macro commands
Many things in a Linux system exist in the form of script code, configuration files, which are often edited when using Linux systems. Obviously, if there is no text editor, the road is unable to be difficult. My choice is vim. Vim is the most famous
Configuration path:/etc/Vim/vimrc. This is the vim configuration of the system. If multiple users in a PC use different configurations, create a new one in the user directory. the vimrc file is enough.I currently write the configuration in the
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,
Vim completion method:
========================================================== ============================ Full line completionCTRL-X CTRL-LBased on the keyword in the current fileCTRL-X CTRL-NDictionary-based completionCTRL-X
Operations in VIM
I. Set the size-character MismatchSet ignorecase/set ICSet noignorecase/set noic2. Set to highlight and not show when searchingSet hlsearch/set HLSSet nohlsearch/set nohls3. Set to display matching points during the search process
Vim is a powerful text editor. We use VC to write on the Win32 platform
Code Often, we are used to some of the format control and code complementing functions provided by VC. These functions can be implemented in Vim, and we have already prepared
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
VI/Vim basic usageThis article introduces the basic usage of VI (Vim), but it is enough for common users!
The VI editor is a standard editor for all UNIX and Linux systems. It is not inferior to any of the latest text editors. Here we just briefly
To learn python in Linux, first install the Linux system. Most Linux systems have Python interpreters.
1. Enter python in the Command window of the Linux system to test whether to install python. If Python has been installed, the following
Http://coolshell.cn/articles/5426.html
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
I learned some simple mobile shortcuts for vim last time and used them for a period of time.
You are already familiar with these shortcut keys.
Continue learning now
This time, we will summarize some shortcut keys for inserting, searching,
Anyone who has used VIM to edit Chinese documents knows that the command line mode is required after each editing.
If you forget to press SHIFT to switch the Chinese/English input, you will find that the commands after pressing ESC are all Chinese
Since VIM has been used for a long time, it has never been thought of as convenient and fast as VIM.
I thought for a moment, probably because I have always been dependent on the VIM editing mode.
This is no different from using other simple editors.
Summary of Vim shortcuts and summary of Vim shortcuts
In July, I had to add more than one piece of water each month. Record the simplest shortcut key. (Add a little bit every day)
Alt + 4: move the cursor to the end of the row quickly;
Alt + 6: move
Command history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.Start vim
Enter the following command in the command line window:
Vim
"/Etc/vim/vimrc is the configuration of all users ,~ /. Vimrc only affects a single user. /Usr/share/vim/vimrc is a hard link of/etc/vim/vimrc ($ ll/usr/share/vim/vimrc can be seen). Generally, only ~ /. Vimrc."Colors, plugins, and docs are all in
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