Switch to root user: sudo su quits root user: ExitTerminal:
Generate multiple terminals: Shift+t right-click Split
Toggle ALT + Digital CTRL + up/down/left/right in different terminal keys
Vim Installation plugin:
Add
Vim text CompilerVI is the default text compiler for Linux and Unix, and Vim is the enhanced version of VI1, about Vim, there are three modesCommand mode: The default mode after the file is opened, can only view the contents of the file cannot be
? ? ? ? When using a Docker container. Sometimes there is no vim installed inside. When you tap the VIM command, you are prompted to say: Vim:command not found, this time you need to install VIM, but when you knock Apt-get install Vim command,
Path:/ETC/VIM/VIMRCOpen Terminal: ctrl+alt+tInput: sudo vim or GEDIT/ETC/VIM/VIMRC (recommended with gedit for better operation)Here is my configuration:1 "My configuration2 "Show Line Numbers3 SetNu4 Set Number5 "Change Indent size6
CtagsC Program reading Auxiliary tool . It's a lot of trouble to have to jump between files when looking at C + + code, which is ctags to solve this problem. Ctags is a tool for Linux, but it is used to generate tags files for vim, VIM can be used
Vim Editoris an upgraded version of VI with color displayInstall Yum install-y vim-enhancedCopy the passwd file to a different directory with no color after vimGeneral modeLeft and RIGHT ARROW keys or KJHL four keys to move the cursorN-directional
The conventional idea is to open two vim and then do the YY and P operations, but the practice proves that it doesn't work at all. At this point, we need to split the window and then we can copy and paste. The steps are as follows:Suppose I want to
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
5.1 Vim Introduction1. vim is an upgraded version of VI2. Vim is a color display 3. Yum install vim command: [[email protected] ~]# Yum install-y vim-enhanced 4 . vim three modes : General mode edit mode Command mode Enter
VimGeneral mode, edit mode, and command line mode, respectivelyGeneral mode: Open a file with VI directly into the general mode ( This is the default mode ). You can use the up and down buttons to move the cursor, you can use the delete character or
Three modes of 1:VIGeneral instruction Mode: VI opens (creates) a file by default in general instruction mode, you can move the cursor up or down, use shortcut keys to copy and paste, delete entire row of columns.Edit mode: In the general
Vim shortcut key classification http://www.cnblogs.com/jikey/archive/2011/12/28/2304341.html one. Mobile:H,j,k,l: Left, bottom, top, right.W: The first word of the next word.E: The ending of the next word.B: The word head of the previous word.Two.
First, the use of vimVim is a text editor developed from VI. Code completion, compilation and error jumps and other convenient programming features are particularly rich, is widely used in programmers, and Emacs parallel to become UNIX-like system
Under the leadership of the teacher, has recently been seen as a rise. Install yourself and try to experience some of the basic functions of vim, perhaps as a beginner, always feel that its instructions are too complex, in terms of text editing,
Windows operations 1. Introduction to Windows operationVim can open multiple windows in one interface for editing, which are called Vim windows. There are many ways to open a method, for example, you can use the command line mode input to :new open
Document Encryption 1. Create an encrypted document$ vim -x file1Enter your password to confirm the password so that the next time you open, VIM will ask you to enter the passwordExecuting external commands in vimEnter command-line mode ! to execute
Find 1. Quick FindEnter Normal mode / and then type the string you want to find and press ENTER to find it. ?is the same as the / function, but ? looks up and / down. After entering the lookup, the input n and N can continue to find n the expression
Linux EditorEdit the file to be quick and not brokenWhat is the current editor? Learn Which? The first thing to consider is what to do with the editor, if you are editing plain text files, no choice, only vim.Common in Linux system Default editor is:
Find and replace/pattern search pattern from the beginning of the cursor to the end of the file, then press N or NN repeats the last search command in the same directionN repeats the last search command in the opposite directionn or N from the word
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
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