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
Install VIM general instruction: sudo apt-get install vim is done.
But there is: reading the list of packages ... Completing the dependency tree that is analyzing the package is reading status information ... Complete the currently unavailable
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
Vim Browse Directory
Use the Vim tool for several years, previously thought that vim can only be followed by file name, but today accidentally found another powerful vim tool, that is, vim can open the directory, as described below.
Figure 1
1. Normal mode (Normal-mode)
The default is in normal mode when Vim is started. Regardless of the mode, press the key (sometimes required to press two) to enter normal mode.
2. Insert mode (Insert-mode)
Pressing I, I, a, a, and so on in normal
Move cursorOn: K NK: Move up n rows 9999k or GG can move to the first line G move to the last rowUnder: J NJ: Move Down n rowsLeft: H NH: Move n columns to the leftRight: L nl: Move n columns to the rightW: Cursor moves forward with a word NW: the
The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
In the terminal, enter the following command to edit the VIMRC configuration file:sudo vim/etc/vim/vimrc or sudo
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
VI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation for "Visual Interface", Vim is
Linuxcenos installing VIM-related operations1. Software Installation: Yum install-y vim2. Working mode-1. Normal mode1) primarily used to browse or modify text content2) Use VIM to open the default mode of the file3) Press the ESC key in any mode to
There are a plethora of commands in vim, and learning on demand is the only way out. Here is a summary of several commonly used cursor jump commands.Basic movement:H (toward left) J (down) K (UP) L (Small letter L, toward right)Move between
Vim is a text editor developed from VI. With color display, code completion, compilation and error jump and other convenient programming features are particularly rich, in the programmer is widely used. To put it simply, VI is an old-fashioned word
1. Need to install vim under the shell command to knock command Vimtutor IDE integrated development Environment 1.vim Three modes of operation A. Command mode B. Edit mode C. Last-line mode1. Command mode-execute command In this mode, you can enter
Introduction to the basic operation of VIM editorYun ZhengjieCopyright Notice: Original works, declined reprint! Otherwise, the legal liability will be investigated.Maybe a lot of small partners have heard of VI editor or VIM editor. They are one of
1. Vim IntroductionIn the previous chapters, we used the VI command many times, and Vim and VI were actually the same commands, using the same.Here's a look at Vim,For example, use the command vi/etc/passwd, enter, see the contents are black and
Example: VI test.cCTRL + Z stops the test.c of VI open and goes to the backgroundand open a VI buf.c.CTRL + Z stops the BUF.C of VI open and goes to the backgroundThe task list is now visible through jobsSwitch tasks with FG + numberSuch
Basic ConfigurationIn the case of any plug-in, the configuration is as follows:set nusyntax onset hlsearchset tabstop=4set shiftwidth=4set expandtabset smartcaseset iccolorscheme srcery-drkVundleVundle is a plug-in manager for Vim, like Neobundle is
From: http://blog.sina.com.cn/s/blog_622d95080100ny94.html
In ~ /. After set mouse = A is added to vimrc, the right-click Vim cannot be copied. The solution is as follows:
Press and hold the Shift key, and then select. At this time, X processes the
Don't try to write down a lot at a time
Master the two or three skills you need most at a time.
Then I am familiar with it. Well, one day, I suddenly found that you are a Vim guru.
-----------------------------------------------
Preface:
Vim is a
Vim and vimVim-common sorting: 1.1 move the cursor
0 or home: Move to the beginning of the line (first line)
$ Or end: Move to the last character (end of line) of this line)
G: Move to the last row of the file.
NG: Row n of the object to be
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