Thank you for the article of the Ox. It solves the problem that I have a headache with vim. When VIM creates a new file, the sticky code is automatically indented, resulting in a very confusing format. According to Blogger's experience, in/etc/vim,
Configuration file path:/ETC/VIM/VIMRC
SYN on; syntax highlighting
Set tabstop=4 tab width
Set shiftwidth=4, line indent width
Set backspace=2, setting backspace available
Set Incsearch Search Auto-complement
Set ai! ; Set Automatic
First remove the old vim.
1.sudo apt-get Remove vim /input re press TAB to display remove
2.sudo apt-get remove vim-runtime
3.sudo apt-get Remove Vim-tiny
4.sudo apt-get Remove Vim-common
Then download the VIM8 Source:
git clone https://
why to use VI.
VI is a very unfriendly text editor, but why use it. Because: all Unix like systems will build a VI editor, and other text editors are not necessarily present; a lot of the editing interfaces of the software will call VI Vim's
Often, during the development process, we often write code, compile, and modify compilation errors, a process that can be repeated hundreds of 10 of times. If you are based on the compiler output error information, open the wrong file, find the
The global catalog under Linux and Mac is in the/usr/vim/share/vim directory
• The user's words must be changed ${HOME}/.VIMRC
It is best to configure one individually for each user or for your own users:
First step: Copy the. vimrc file
: ~#
Source: http://www.cnblogs.com/taskiller/archive/2012/08/14/2637689.html
I. Introduction of Pathogen
Typically, the Vim plugin is installed, usually all the plug-ins and related DOC files are installed in a folder, such as the plug-in all installed
In the shell, remember that some of the commonly used VIM commands are more effective when operating.Cursor movementh,j,k,l,h #表示往左, J means down, K indicates toward right, l means upper Ctrl F #上一页Ctrl b #下一页 w, E, W, e #跳到单词的后面,
let g:AutoPairs = {‘(‘:‘)‘, ‘[‘:‘]‘, ‘{‘:‘}‘,"‘":"‘",‘"‘:‘"‘}Set the symbol to be paired automatically
let g:AutoPairs[‘‘Add symbols to auto-pair <>
let b:AutoPairs = g:AutoParisSet the symbol to be automatically paired, default to G:autopairs,
The source I saw was not posted, I turned to http://www.cnblogs.com/feisky/archive/2012/02/07/2341932.htmlwindows. Many people use source insight to write and view code. Vim can be used under Linux, initially feeling vim like Notepad under Windows,
1. Open multiple WindowsSplit up and down open the windowVsplit around the windowSwitch between CTRL + WW WindowsCTRL + WQ launch Current window2. Move the cursor:Figure 0: Move the cursor to the beginning of the current line$: Moves the cursor to
Set
Description
Set IM
"Sets the mode to enter at startup
Set Magic
The Set Magic
ColorScheme Slate
The Set theme
Set Shortmess=ati
"When it starts, it doesn't
Vim working modeVI file name into command modeI a O into insert modeESC key back to command mode: Enter edit modeAdd line number: Set Number/nu: Wq Save ExitInsert commandA specifier insert in the word cursorA at the end of the line where the cursor
ProblemToday simple Match (Chao) Set (xi) a bit tmux, the results found that tmux inside to open vim every time you press ESC to reflect a second, as Ctrl + [ wellSolvePossible causes are: terminal emulator, Nvim, Tmux. Multiple control variables
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
VimInsert modeA after the cursorEnd of A Lineo The next line in the row where the cursorO a row on the line where the cursor isI before the cursorI beginnings delete the character at the cursor position and enter insert mode Command modeD DeleteDD
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
Vi (Visual Interface) is a text editor with a common text compiler that has ASCII encoding, Unicode encoding, and so on. Vim is VI improved: is the enhanced version of VI, Vim is a modal editor.There are 3 modes of VIM in the work:- edit mode: Also
1 Zen Coding
More about the function! See:
Download zencoding first!
Http://code.google.com/p/zen-coding/
Put zecoding. Vim in the Vim \ vimfiles \ plugin folder.
Place zencoding.txt in the Vim \ vimfiles \ doc folder.
Copy the files in the
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