Https://github.com/ma6174/vim-deprecated Easy Installation Method:Open the terminal and execute the following command to install it automatically:wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
or manually install it
First, the common key description1. General mode
Keys
Description
0
Move to the front of the line
$
Move to the last face of the line
G
Move to the last line
Tag: Pos Post search detects down art ble MRC consistencyVIM basic Commands
Cursor movement
G last lineNG moves to nth row n return cursor moves down n rowsGG First Line
Find and replace
/wordn Repeat previous Find
This series of Linux primer is I in the "bird Brother's Linux private dishes" based on the summary of the basic content, mainly to record their own learning process, but also convenient for everyone to understand brieflyLinux distribution is an
You can use the: s command to replace a string in Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query.: s/vivian/sky/replaces the current
Vim command
Three different modes
Command mode
Insert mode
Last Linemode Bottom line mode
Bottom-line mode common commands
: W Save
: Q exit
:! + command
When vim pastes the code, the pasted code (SHIFT+INSERT) is automatically indented, resulting in a very confusing format.Two methods are described below:(1) in Vim, enter the command mode input: Set paste, in the paste, it will not garbled. However,
Content from https://www.cnblogs.com/chenlogin/p/6245958.htmlI picked a few that I think are most commonly used, as follows:Default to Normal mode (ESC enters this mode in any mode)I: Enter input mode: Enter Command mode: Q exit: Wq Save and exit: W
have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is
Help on viewing Help in System 1.vim
Press F1 vim to open your own preset help document in normal mode
Enter :h shiftwidth shiftwidth The open Help file in command line mode
Input :ver display version and parameters in command line
When installing vim using the Yum install Vim command on FEDORA20, the package conflict is indicated as follows:Transaction Check error:file/usr/share/man/man1/vim.1.gz from install of vim-common-2:7.4.475-2.fc20.i686 conflicts WI Th file from the
Normal ModeJ Skip to Next linek jump to the previous lineh move forward a characterL Go backward one charactera Enter edit mode and insert content after the cursorA Enter edit mode and insert content at the end of the lineb Navigate to the first
One, move the cursor # hjkl# 2w forward two words # 3e move forward to the end of the 3rd Word # 0 Move to the beginning of the line # $ The end of the current row # GG file The first line # G file last line # line number +g Specify line # +o jump
In Linux, the Vim editor is the system's own text editor, but to modify a text file, it is not like Windows, more novice, into the VI editor, can not exit so that the forced shutdown, in fact, this vim (vi) is very simple.1. Enter the VIM editorVim
Multi-line Delete and copy method one: Single row Delete,: 1 (row to delete) d multi-row deletion,: 1,10d method Two: The cursor line, DD cursor line of n rows, Ndd Method 1: The cursor is placed on line 6th, input: 2YY cursor placed on line 9th,
The legend of Ubuntu is to develop the necessary, but also want to try hackers;ubuntu16.04 comes with python2.7 and 3.5 two versions and Vim editorOne, on-line check a lot of information is the Pydiction plug-in installation use, to achieve tab
Ubuntu: install and use vim, ubuntuvim
Ubuntu: install and use vim
1. Install vim
Run the following command on the terminal: sudo apt-get install vim-gtk.
Ii. Use vim
Operation Mode:1. In normal mode, the default mode is normal. You can only
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