Basis:: W Save: q! forced exit not saved: wq! save exitX Delete the following character x delete the previous characterDD: Delete Row 5DD: Delete 5 rowsJ: Remove line breaks to make the next line come upU: Undo Last ActionI insert before the cursor
VI Most original versionVim modified version, more powerfulOpen FileVim file path (command line mode)The command line mode enters edit mode:A append to the current positionI insert forward in the current positiono Edit the next line in the current
Basic concept: A powerful text editor developed by VIOpen File:Vim file nameVim + N File name —————— How many lines of file are opened directlyVim three modes of operationCommand modeCommand mode toggle Input modeInput modeLast-line modeSwitching
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
Shortcut keys for the VIM editor(i) in command modeTo move the cursor:Move front and back: H move forward one unit in the same line L backwardMove up and down: K move J up one line downHL can only move one unit, inconvenientNumber 0 moves to the
1.VI is the abbreviation of "Visual interface", its status on Linux as if the edit program on DOS. It can perform many text operations, such as output, delete, find, replace, block operations, and so on, and users can customize them according to
Vim command quite a lot, the basis of the preservation, exit, insert, move, etc., trouble points of multi-line selection, split screen and so on.Vim commands are also available in three modes, command mode, edit mode, and bottom line mode. There are
Vim is an upgraded version of VIThe most obvious difference is that vim displays the contents of the file into a highlighted color.There are many conditions for vim to display colors, and the same file will show different colors in various
Own VIM configuration script, with independent intellectual property rights (refer to a little others), only use a plug-in ctags, the main implementation of the function:
Auto-complete brackets, double quotes, single quotation marks,
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
Vim is an upgraded version of VI, which is displayed according to the text attributes, with the following details:General mode:1. Cursor Positioning:Move left and right one character, H LMove one character up or down, K JLeft and right down, around
General Mode Common operation"[Ctrl] + F" screen moves down one page (equivalent to page DOWN key)"[Ctrl] + B" screen moves up one page (equivalent to page UP key)"[0] or [Home]" cursor moves to the front of the current line"[$] or [end]" cursor
Use: Help to open Vim's aid document found to be full of bitter English, below to provide Chinese Help document installation method:First go to URL http://vimcdoc.sourceforge.net/Select "Latest platform independent tarball,including an LINUX/BSD
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
Today when using the Vim editor to find the default tab key is 8 characters, so think of it set to four spaces, after Baidu, got the following methods:First Enter/ETC/VIM/VIMRCThen add the following code at the end of the document:Set tabstop=4
I onK DownJ LeftL Right(Move up a section) Move down a section* Search KeywordsD DeleteY copyP PasteH insertionH-Head Plugo Open a line belowO Open a line aboveF-Jump specified keywordF forward Jump Specify keywordE-Letter forward JumpW Letter
Vim is a very useful text editor for Linux, and people who develop under Linux are familiar with VIM commands.1. Open on line 143thVim +143 filename.txt2. Read-only mode openVim-r/tmp/a.txt3. Force SaveCommand mode wq!4. Go to the end of the current
? ? ? ? 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,
Common vim commands, differences between vim and vi, and common vim commands vi
Differences between vim and vi
They are all multi-mode editors. The difference is that vim is an upgraded version of vi. It is not only compatible with all instructions
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.