Vim-Addons status Displays the extensions installed in the system, which are enabled for the current user, and which are disabled. Vim-Addons install extension-name Install an extension for the current user, that is, create a symbolic link
Restoration in VIM is relatively simple, but it is difficult to recover to a specific time period.
In my experience, it is better to use restoration to delete and rewrite data.
Here we will talk about the use of recovery, revocation, and repeated
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, press the direction key to
The mutex/thread Implementation of GCC 4.6 may have some problems. As a result, when mutex/thread is used, the chrono compilation error may occur and the prompt cannot be prompted. after research, clang 3.1 supports libc ++ mutex/thread and switches
1. Search
/XXX (? XXX) indicates searching for strings matching XXX in the entire document,/indicates searching down ,? It indicates that xxx can be a regular expression in the upward search. We will not talk much about the regular expression.
Two modes:■ Normal mode (Normal Mode)■ Insert mode)
In insert mode, press escape to enter normal mode. In normal mode, press I to enter insert mode.
The insert mode is used to edit text. commands are generally used in Normal Mode:
Positioning:
■
Open the JPG file with vim in Linux and use %! When xxd is displayed in hexadecimal notation, the file header is displayed as "3f3f
3f3f 0011 0804 "The end of the file is" 3f3f"
In Windows, the same operation is displayed as "ffd8 ffc0 0011 0804"
ArticleDirectory
Character Deletion
Delete words
Delete row
In this section, let's take a look at the deletion. The deletion command is relatively simple, but to make the deletion more efficient
You need to work with the
In VI/vim, you can use the: s command to replace the string. This command can be used in many different ways to implement complex functions.
: S/Vivian/sky/Replace the first Vivian in the current row with sky
: S/Vivian/sky/gReplace all Vivian
Use Vim to write c ++CodeBasically, there are not many completion plug-ins to choose from. I use omnicppcomplete. This plug-in relies on tags for completion, and the effect is unsatisfactory.
Clang complete was found some time ago, and the effect
Vim is an excellent open-source text editor. It is a very common text editing tool for Linux/Unix users. After one year and five days of waiting, we welcome the stable version of VIM 7.1. The revised version fixes a security issue and causes crash
Since the 70's, VI and Vim are very popular text editors among programmers. 5 years ago, I wrote an article named "100 Vim commands Every programmer shoshould know" and here is a reworked, updated version. enjoy!Basics
: E filename
Txtbrowser is a Vim plug-in designed to provide a better TXT browsing experience. Main functions: automatically generate a directory tree sidebar (taglist window) for plain text, syntax highlighting, and multiple extension functions (execute URL,
1. ctags(1) download the ctagssource code ctags-5.6.tar.gz from http://ctags.sourceforge.net/Http://prdownloads.sourceforge.net/ctags/ctags-5.6.tar.gz(2) decompress and installTar zxvf ctags-5.6.tar.gzCD ctags-5.6./Configure & make install(3) UseRun
The Code pasted into Vim from other editors is often incorrectly formatted due to abnormal indentation. Found in Vim's official FAQ (http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl:Format full text: Gg = GAuto indent current row: =This is an
Source insight is the most convenient tool for viewing code in windows. However, source insight does not have a Linux version. To facilitate code browsing and learning in Linux, we can use vim and csinsight to build the source insight in
The usual Vim skills are recorded on the blog to facilitate searching.
In vim, move the cursor to the first word of the next word, use the command "W" to move the cursor to the first word of the previous word, and use the command "B "; move the
If you like vim and write JavaScript at ordinary times, this article will write for you :) if you like JavaScript but haven't found a proper editor yet, please give Vim a try.
The following assumes that you have some knowledge about vim, and all
1. Move commands(1 ). h j k l, direction key, and memory tips: The left and right directions are the leftmost and rightmost, and j is checked downward, so it is the downward key, the remaining k is the up key.(2). B, before, last word (first word)W,
Document directory
Configuration
The most useful commands
Useful plug-ins
Configure Python
Technorati label: vim
I made a note by collecting the contents of the online hosts.Most common configuration
Set nocompatible "allows vim to avoid some
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