1. Move the cursor to the position where you want to operate.2. Press CTRL + V into "visible" mode and select the column to operate on each row.Select multiple Coulmns using left/right arrowSelect multiple rows using Up/down arrow3. Enter SHIFT + i
Three different modesCommand mode (edit mode): The default mode after opening the editor, you can move the cursor, delete and so on.^: Jump to the first non-whitespace character at the beginning of a line$: Jump to end of lineGG: Jump directly to
Use of the VIM editorGeneral modeTo move the cursor:Ctrl+f screen moves down one page, equivalent to page Dowb buttonCtrl+b screen moves up one page, equivalent to page Up button0 or function key home moves to the front character of this line$ or
I. Substitution and revocation of characters (undo action) 1. Replace and revoke (undo) commandBoth the Replace and undo commands are for normal mode operations
Command
Description
r+
Replace the
After reading the vimtutor, take the summary out and bring it together so that you can turn it on at any time.
If you have read the text, you'll forget the commands!
Although I followed it again, or not all, practice it, who makes me
Vim is a strong to no friends of the text editor, often using Vim editor friends must have a deep experience. Here are some simple vim configurations.(1) Vim ~/.VIMRCEdit the following to save the exit.(Note: Osx/ubuntu/centos/redhat test
Why use VIM? Originally use sublime to do foreground development, but with want to learn node, side to use command station, side to switch back, in Mac Ben really not so convenient. So start learning vim. For a brief introduction, the Congo enters
Often forget the sudo directly with vim edit/etc files, and so on editing, save time only found no permissions.OK, the way to save the curve is to first keep a temporary file, exit and then sudo CP back. However, in fact, the process can be done
Vim is not like many editors can directly edit the text as soon as possible, you need to press I in normal mode, a and other keys will enter the insertion mode for text editing.How to enter Insert modeThe following commands will let vim switch from
I. Buttons available in general mode1. Cursor movementh or LEFT ARROW key: The cursor moves one character to the leftJ or DOWN ARROW key: Move the cursor down one characterK or UP ARROW key: The cursor moves up one characterL or RIGHT ARROW key: The
Vim is an upgraded version of VIThere are 3 modes of operation:1 General mode 2 edit Mode 3 Command modeA after the cursor insert I before the cursor insert o insert a new line under the cursorA at the end of the cursor insert I at the beginning of
In the maintenance of online services, often to edit some files that do not belong to the operation of the user, that is, only the type of R permission, each save will prompt read only. Can only be noted to change what, and then quit, and then sudo
Vi:visual InterfaceVim:visual Interface ImprovedVim mode:Edit mode (Command mode): The mode in which Vim is turned on by defaultInput modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current cursor, switch to input
Reprinted from Http://blog.chinaunix.net/uid-22891521-id-2109310.htmlSince has been in a very old Linux version of the development, the inside of the vim is also a very old version, today in the case of the completion of the work, the upgrade of the
Enter Vi/vim VI/vim filenamethree modes of Operation:text editing mode: I,a,o into the text editor, press ESC to exit the text edit and convert to command mode. 1) I insert text at the cursor location. ·2) a The text is inserted at the next
Found vim write Erlang code syntax indentation is not correct, later found that Vim is 7.0, vim7.3 started to support the Erlang, so upgrade vimGit downloads the source package, and then a series of configuration installationsHttp://www.2cto.com/os/2
Move cursor ctrl+b screen move backward one page ctrl+u screen move backward half page ctrl+f screen move forward one page Ctrl+d screen move forward half page W cursor jumps to the beginning of the next word e cursor jumps to the end of the next
Normal mode is usually used to browse the text, in fact, the keyboard command to let the cursor jump in the text, in any mode press or two times will enter the normal mode.Basic ideasVim's positioning of the cursor is very precise and efficient,
This theme looks a little dirt, you are a program ape, even all day will be configured, build, compile, play vim. You've been mixed up for almost 10 years, how do you write code? Ashamed to say, why write this, because this compilation bothered me
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.