Vim View header file, library function method:
1, the simplest way is to install the corresponding library of the man Manual, directly in the terminal man XXX (function) such as man printf will see PRINGF related information, this method is simple
vim Practical Small Command
1. How to paste command line modeThere are two modes of general VIM: Command line mode and edit mode
When we press the ESC key and then enter: After that, we enter the command mode, and then we can enter the command.
But
http://www.open-open.com/lib/view/open1414227253419.html
vim Ten Essential Plug-ins TagList
TagList is a plug-in used to display various symbols in the locator, such as macro definitions, variable names, struct names, function names, which we call
VIM open, cursor Movement, edit mode, normal mode, command mode toggle command
1. Cursor movement in the screen text can use both the keyboard and the left and right arrow keys, you can also use the HJKL letter key.
H (Shift left) J (downlink) K
Open the Gvim error on the command line as follows:Gvim:fatal IO Error 11 (Resource temporarily unavailable) on X server:0.///////////////////////////////////////////////////////////////////////Temporarily did not find why, see usr/bin below Gvim
Vim's frequently used shortcut keysH-Move the cursor left one character J-Move the cursor down one characterK-Move the cursor up one character L-move the cursor right one character down 15 lines-15jCTRL + F-the screen moves down one page Ctrl +
= = The line number of VIM, syntax display and other settings (configuration of. vimrc files) = =January 18, 2008 Friday 23:01When using vim for editing under a terminal, by default,The editing interface is not displaying line numbers,
Vim User Guide in Ubuntu
ESC: This is one of the omnipotent function keys in Vim. Basically, pressing this key at any time can return the normal state of vim.
I: In normal state, you can press I to enter the "insert" Edit state. At this time,
Although Vim was used a long time agoTuneClick here and use only the commands you want. Recently, to improve writingCodeEfficiency, as well as coding fun, and re-study vim, found a good entry to VIMArticleThe original text is in the English version.
Ctags Installation
Ctags can create source tree indexesProgramDevelopers can quickly locate functions, variables, macro definitions, and other locations during programming to view the prototype.The following describes how to download, install, and
In vim, you can easily set tabs or spaces based on different file types, and set the length to be flexible.
First, let's take a look at how to set the tab width and determine whether to use a tab or space to represent an indent:
Set Tabstop=4Set
1. Overview
In general, jump in code is inseparable from ctags.
In fact, the Code redirection in VIM is completed by the vim tags module, and the tags module depends on the tags file.
Ctags (generate tag files for source code) generate the tags file.
Install gvim on Ubuntu 10.10.
Start download and install
Sudo apt-Get Update (update the source, which is optional)
Sudo apt-Get install vim-gnome
After installing OK,Configure the menu for gvim (Two methods)
Method 1: sudo
In vim, I usually use visual mode to select some text and then use the ZF command to collapse the text. However, it is not very convenient to use visual mode, however, it is not very convenient to use it frequently. the command mode can be used:
I. Basic editing functions1. Copy, cut, and pasteCopy a specific segment: move the cursor to the header of the text to be copied, press "V", move the cursor back, and the character where the cursor is crossed will be highlighted, after moving to the
Vim-move cursor
H, J, K, L → left, bottom, top, right. → flip down. → page up.% → Move the cursor to the matched {}.W → start of the next word.W → same as W.E → end of a word.E → same as E.B → the first word.B → same as B.0 → the beginning of the
1. Support for Chinese Encoding
Vim
To better support Chinese encoding, two features are required: + multi_byte and + iconv. You can use the |: Version | command to check whether the currently used Vim supports this feature. Otherwise, you need to
Previously, vimrc was changed to solve the problem of syntax brightening. Then, the mouse was suddenly ready to use, and the cursor located at the point.
However, we later found that Ctrl + Shift + C is not available, and the right-click Copy
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