Vim is the most common text editor on Linux systems, and almost any Linux distribution will be installed by default. Yes, it's a free software. It's good to learn the basic operation commands of the Vim editor, which can make your work more
Vim is called the god of the editor, so when we operate the Linux system, does the editing work feel powerless? Today, I am talking about some of the VIM's operational commands I have summed up with you to share, there are shortcomings also please
Vim can be copied and pasted in multiple sections. That is, the content x is copied to the register "1", the content y is copied to the register "2", paste can be selected from "1" or "2" paste.(1) VIM has 13 pasteboard, respectively 0, 1, 2 、...、 9,
First, enter the editing mode1, according to large I positioning the beginning of the big line to edit2. Press small I to edit by the line where the cursor is located3, press big A from the end of the line to edit4, press small A from the current
The Vim editor is used in Linux. After finding some information, I tried to configure it. Here are some procedures.The first thing you need to know is that the VIM-related configuration is written in the ~/.VIMRC file. My notes below only configure
I. Introduction of VIMVim is an upgraded version of VIis the vi with color displayDivided into general mode, edit mode, command mode.yum install -y vim-enhancedInstall VimUse VIM to open passwd after installation is completevim /etc/passwdAnd before
Vim is an upgraded version of VI, more than the VI featuresVim when editing the file is color display, vi is no color displayThe default is not installed Vim, need to install this packageYum Install-y vim-enhancedVim has three modes, namely General
I. VIM's editing modeSecond, vim command modeThird, VIM practice operation# Cp/etc/dnsmasq.conf/tmp/1.txt (1) Move Down, right, left, and up 6 characters (6j 6l 6h 6k) respectively. (2) turn down and up two pages (two times ctrl+f and Ctrl+b
1. Notes :Move the cursor to the comment headerCommand mode Ctrl + V, enter column modeMove up and down to select what to commentPress Caps I to enter insert modeInput//or #Press two times to exit2 Solution NoteMove the cursor to the ready-to-note
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
Three modes of vim editing artifact:
Command mode
Insert mode
Last-line mode
$vim name +number Jump directly to the number line of the fileCommand mode, insert mode i : Insert before current cursor I : .... at the beginning
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
Follow the online tutorial to install the software, none of which is successful (or probably not). Oneself from the net patchwork, finally let own vim intelligent identification.1. Upgrade Vim: (Ubuntu)sudo add-apt-repository ppa:jonathonf/vimsudo
Linux command line shortcut keysShortcut keys: Tab Auto-complete path directory name, +l (lowercase) Clear screen, CTRL ++ + +e (lowercase) to command line end shortcut: Ctrl+k Delete/ cut the contents of the cursor to the end of
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,
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
One, the method of annotating multiple lines1. Enter the Vi/vim editor and press CTRL + V to enter visual mode (visual BLOCK)650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/13/b033cb353db60f719cc34684e260a3c2.jpg-wh_500x0-wm_3 -wmp_4-s_41
Look at the C + + code, lack the right editor, and tinker with Vim.
Installing the Vundle for plug-in managementgit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim --depth=1
Install Youcompleteme, code completioncd ~/
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