First, the preparatory work 1. Download Vim74 and Vim-gdb for version 7.4:(1) vim7-4.tar.bz2 (2) vimgdb-for-7.4 2. Uninstall existing VIM and related componentsIf you have already installed Vim through Software Center, you need to uninstall it sudo
1. View Alternative Color schemes/usr/share/vim/vim74/colors650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/4D/wKioL1WYnoWwkSZlAAEpERAq0jA172.jpg "title=" Qq20150705105540.png "alt=" Wkiol1wynowwkszlaaeperaq0ja172.jpg "/>2. View the
first, the common operation(i) Vim mode of operation1.VIFile: Enter Command mode 2,Iao: Enter insert mode
ESC: Exit Insert, enter command mode
3, ":": Enter edit mode
Enter: End run, enter command mode
5.Wq: Exit(ii)
With Vim is the code of the fly, suddenly xshell off the line, it is too painful.So began to miss the VS code when the ctrl+s saved shortcut keys, Baidu a bit, on-line vim to achieve Ctrl+s save the shortcut key settings have problems, their own
Configuration of Vim
Files: ~/.VIMRC
Edit configuration in the. vimrc file in your home directory
Settings are as follows:
1Set Nu"Serial Number2Set tabstop=4 "the size of the TAB key3 Set ShowCmd4Nnoremap : Set Nonumber!:set
Ctrl+f move forward one page in a file (equivalent to page down)Ctrl+b move one page back in the file (equivalent to page UP)* When the cursor rests on a word, the * key searches for the word within the file and jumps to the next place# when the
Basic Jump:HJKL: Lower left top rightHML: Current screen top, middle, bottomWeb: Next word first, next word ending, first wordGG: Top of File G: End of file Ngg/ng: Nth lineTA: Move to the next character after the first character of a lineFA: Move
2015-06-04 by KomileVIM Basic CommandOpen a file vim index.phpDescription of several modesNormal ModeThat is, the general Normal mode, the default into Vim, in this mode.Insert ModeInsert mode, in fact, refers to the state of editing input. In
[Vim]Operating mode switching:Enter edit mode when I (insert), C (modify), O (another line) command is entered in normal mode, and press ESC to return to normal mode.Enter a colon in normal mode (:) can enter command mode. After entering the command
Macros are a collection of commands and are widely used, including the word editor in MS Office, the Excel editor and various text editors, and Vim, one of the most powerful text editors in Linux systems, also supports macro operations, and this
1, the VI3 modeGeneral mode, edit mode, command mode2. Quick operationI, I insert: I insert text at the current cursor, I (uppercase I) at the beginning of the insertionA, a increases: A is entered by the next word where the cursor is located, and a
Do back-of-the-envelope calculations in placeIn Vim, we can use the expression register to directly perform mathematical operations and then insert the results into our documentation.The expression register can be = accessed by accessing, in insert
The VIM input command zz can redraw the screen so that the current line is in the middle of the screen.Paste in insert modeyt,The command is copied from the current character to the character, and then the j command moves to the next line, the A
Vim Editor Command mode (default), tail line mode:/Two ways (ESC slow, continuous conjunction ESC, delete all tail line content), edit mode A,i,o,s:q exit Edit does not save: Wq save Edit and exit: W Save and write content: q! Force quit, do not
Transferred from: http://www.xefan.com/archives/83568.htmlThis is a very useful plugin for programmers, supporting multiple language complements, but also support a single line of comments, batch annotations, and other command mappings.To use,
x Delete the characters under the current cursorDW Deletes the remainder of the word after the cursor.d$ the remaining portion of the line after the cursor is deleted.DD deletes the current line. the C function is the
First, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move to the end of the line $, move to the beginning of 0 (number),
Here are three VIM plug-ins, one is Pyflakes, the other is PEP8, and their fit Flake8 installedInstallation is simple, find your. Vim directory, unzip the two compressed packets and put them in.Go below vim official down down.Pyflakes http://www.vim.
Basic operation of the Vi/vim editor under Windows contents
1. Tool Preparation (Download Gvim)
2. Basic Introduction to Vi/vim
2.1. Installation
2.2. Basic use
3. Vi/vim Basic Command table
1Tool
Join talkVim (20th back: Vim plug-in NerdTree)
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced taglist in Vim
Plug-in .. In this case, we will continue to talk about the Vim plug-in, but
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