Advanced Editor, will contain macro features, Vim is certainly not missing, in Vim, the use of macros is very convenient:
: QX starts recording macros and stores the results in register X
Q Exit Record mode
@x play the Macro command recorded in
VI is a command-line interface under the text Editing tool, Vim is an enhanced version of VI.
Vim or VI commands can start the VIM editorVim + Destination file path Open file with vimIf the destination file exists, Vim opens the fileIf the
This is called "Vim speed Introduction" article, really is the introduction of the speed, usually need is so much, so turn around. Here, by the way, a lot of things are not inclined to read the original in recent studies, so that they can quickly
VI Editor has 3 kinds of modes: Command mode, input mode, last line mode. It is important to master these three models:Command mode: VI after the start of the default to enter the command mode, from this mode using the command can switch to the
Vim Multiple Line Indent tips
1. Enter the visual state by V, select multiple lines and indent or indent with > or 2. Automatic indent typesetting is usually used according to language features: in the command state = = Two for the current line, or
November 21, 2010, Sunday 09:50
Questions raised:Under Windows There are sourceinsight can easily locate functions, variables, macro definitions, and so that developers to manage project code, improve development efficiency, then in Linux
Command History
Commands with: and/start with history, you can first type: or/And then press the up and down arrows to select a history command. start Vim
Enter the following command in the Command line window
Vim starts vim directly
Vim filename
When writing a configuration file, often forget to switch to root, resulting in file editing, typing: Wq exit save, appear E212: Unable to open and write file error prompts. This is due to the fact that the current user does not have write
Vi/vim Basic Use MethodThis article introduced the VI (VIM) basic use method, but for the ordinary user is basically enough. I/vim the difference is simple, they are multimodal editor, the difference is that vim is VI upgrade version, it is not only
Developed under Linux, Vim is the preferred tool. However, vim, which is installed by default on the system, usually does not match some of the regular settings. such as: color display, highlighting, automatic indentation, automatic memory, tab step
Ubuntu VIMRC settings are available for Ubuntu and Fedora Systems, and other systems are not validated.
Vim configuration files in Ubuntu are stored in the/etc/vim directory, with the configuration file named Ubuntu VIMRC
The configuration file
Many beginners start vim, do not know how to enter characters: Press the half-day letter, the result screen is still empty.Vim is not the same as Notepad or word, and it is in normal mode when you enter text without opening it.There are 4 modes of
ThreeVI and VIM The biggest difference is to edit a text VI does not display color, vim display color.
Installation: Yum install-y vim-enhance
There are three modes of VIMA: General mode
Up or down cursor KJHL
ctrl+b Text
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorThe options and meanings of VIM commandsOption Comment-C command executes the command command before editing the file -r filename
: W writes data to the hard disk: w! If the file property is read-only, the file is forced to be written. However, it is important to note that this is true if your permission can be changed .: Q Leave Vim: q! Modified the file, and did not want to
Basic Operation Open File vim [option] file +n. :打开文件后,让光标处于第n.行的行首,+默认行尾 \\ vim +5 file 打开file并让光标处在第5行Enter insert mode i \\ 在光标处输入 I \\ 当前光标行的行首输入 a \\ 在光标所在处后面输入 A \\
Note: These commands have a colon before them:Edit Exit VimWhen you are finished editing the document, you are ready to exit VI when you return to the shell, you can use one of the following methods.In command mode, double-press two capital Letter Z,
With python2.7 on the CENTOS7, we need to optimize the Python environment.
First, using the watercress source to accelerate the software installation
Pip install-i flask #使用-i option mkdir ~./pip && vim pip.conf #修改pip的配置文件
Reprint: Change the Vim profile under Ubuntu to create a C + + styleVim's default configuration is not satisfactory and requires its own configuration.The default configuration file is:/ETC/VIM/VIMRCWe can set up our own configuration file in the
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