Text editor, word processor
Ascii
Nano, SED
Vi:visual Interface
Vim:vi improved
Full screen editor, patterned editor
Vim mode:
Edit mode (Command mode)
Input mode
Last line mode
------------------------------Mode conversion:
Edit--> Input:
The solution of the garbled problem of vim under Windows
Vim default encoding is GB2312, no utf-8 to choose for us, so we have to configure ourselves:
The specific configuration is as follows:
Open the VIM installation directory under the _VIMRC,
Vim combines regular expressions to achieve complex functions, such asCommon find substitution%s/matching strings/replacement strings in vim/gIf you want to match only the number of strings:%s/string/&/gnN, which represents only the number of
I am very sorry, this is my 12 years of configuration, has been in the open source China community to share, the following are constantly updated and modified. More suitable for front-end engineers to use.Vim is configured as follows:
Set
In a Linux environment, if you use the Vi/vim command to edit files without modifying permissions directly, the user will be prompted to save when saved, and the general solution is to turn off the file again with sudo permission to open the file
: s/vivian/sky/replaces current line first Vivian for Sky
: S/vivian/sky/g replaces current line all Vivian for Sky
: N, $s/vivian/sky/replaces the first n line to the top Vivian for each line in the last line of Sky
: 2, $s/vivian/sky/g replaces
I've recently been using Ubuntu11.04 to learn Unix before, but Ubuntu11.04 X window does not perform well under VMware7.1.4. It doesn't matter, first put the basis of the command line to say.Ubuntu VI is also not good to use, a vim used to learn, a
vim Three modes: General mode edit mode Command modeCopy and paste content can be deleted in general modeTo move the cursor :[Ctrl]+[f]: The screen moves down one page, equivalent to the [PageDown] button.[Ctrl]+[b]: The screen moves up one page,
Use VIM to open a blank document, and then paste the copied code into it, found that it has automatic indentation function, resulting in the pasted text line is more than one line on the right, looks mess. The quicker solution is to enter the
Today, I use VIM to edit HTML pages in Centos7 and find Chinese garbled. So Baidu, found that everyone seems to be around why it will occur in Chinese garbled, but the solution is not very in place. Garbled is nothing more than character encoding,
Learning vim is often needed, and these commands are the most commonly used commands I've had this time, and it's very efficient to improve myText editing efficiency.------------------------------------------------------------------------A1. Text
The learning curve of Vim is quite large (see the learning curve of various text editors), so if you start to see a bunch of Vim's command classifications, you're bound to lose interest in the editor. The following article is translated from "Learn
1.CtagsCtags tool is used to traverse the source code files generated tags files, these tags files can be used by the editor or other tools to quickly find the location of the source code symbols, into the variable name, function name and so on. For
This complements the plug-in from the name to see very greasy harm ~
System environment: Ubuntu64, ready to install Youcompleteme
Confirm Vim Version: Open vim to see the version number, need to be greater than 7.4.143
Confirm that Vim
Summary:In the minicom terminal to modify the files in the Development Board, you must use the VI, because the development Board is not like the development of the host, there are gedit and kscope such as the editor, and even in the development of
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
Cursor movement: H (left) J (off) K (UP) L (right)Use Vim to edit a file Vim file nameExit Vim: In command-line mode (press ESC to command-line mode),Q! Discard all changes to exitWq Save all changes to exitDelete in command line mode: XInsert text:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/97/C8/wKioL1kyuIOB8DIuAAAQijajlbg671.png "title=" Clipboard.png "alt=" Wkiol1kyuiob8diuaaaqijajlbg671.png "/>pydiction can be we use the TAB key to automatically complement the Python code
Open a hole and record the evolutionary process using VIM. This thing is not a day or two with the fine, more natural feel that there are many places need to further study, and slowly come up with efficiency.First I spent most of the time on win to
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