First, the preparatory work before installing VIM7.4
1
The code is as follows
Copy Code
Apt-get Update
Problem encountered:W: The key for the following ID does not have a public key available:8b48ad6246925553
Vim is the most famous text/code Editor on Linux systems, and the enhanced version of the Vi editor in the early years, and GVim is its Windows version. Its biggest feature is the full use of keyboard commands for editing, while leaving the mouse to
VI (VIM) is a very popular editor on Linux, many Linux distributions are installed by default VI (VIM). VI (VIM) command a wide range but if used flexibly will greatly improve the efficiency. VI is "visual interface" abbreviation, VIM is VI improved
First, the current file name
We know that Vim has 48 registers, where the current file path is kept in the% read-only registers. For example /home/harttle/ , at the bottom open src/main.cpp , we print the% value:
: Echo @% file path
The scripting language is really strong.
My goal is to add my default dock function to Vim.
/****************************************************************************** * Copyright NOTICE * Copyright (c) 2014 All rights reserved *----Stay
1. Start-R Read-only mode, but if you have permission to do so, you can force the save.-C (command) after loading executes the command, such as "Vim-c/most myfirst" Open the file, and then search directly backwards most.More can refer to-h
2.
One, vim python automatic complement full plugin: pydiction
You can implement automatic completion of the following Python code:
1. Simple python keyword completion2.python function Complement full bracket3.python Module Completion4.python module
In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor,
After adding the following code to the. VIMRC, restart Vim to create 4 spaces by pressing TAB:Set ts=4 (Note: TS is the abbreviation for TabStop, set tab width 4 spaces)Set ExpandtabFor a saved file, you can use the following method to replace the
In this section we take a look at the delete, delete command is relatively simple, but to make the deletion more efficientYou need to match the various move commands we've talked about in the first section.Character deletionx Delete the
The% address range symbol, which represents all lines in the file, is equivalent to the address range 1,$. Matches any single-character (except for newline characters), such as Y.S can match yas Y.s or Y S, and so on.* Matches 0 or more occurrences
1. Mode switchThree modes: Command mode, input mode, bottom line modeSwitch between command mode and input mode: I ESCSwitch between command mode and bottom-line mode: SHIFT +: ESC2. InsertI: Insert on the left of the current characterI: Inserting
You can use the common arrow keys under VIMBut there are other keys that will allow you to reach your goals faster.HJKL this is a substitute for the arrow key functionH M L Jump to the top middle of the screenW jumps to the beginning of the next
Vim is really powerful.M Direct start vimVim filename opens vim and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files at the same timeVim file1 file2 file3 ...Open a new file in the Vim window: Open FileOpen a
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete 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),
-Youcompleteme exact words: On Ubuntu 16.04, Python support is not working due to enabling both Python2 and Python3. Read answer by Chirinosky for workaround.-The first one to answer the question,
These two days and vim more retwist, summed up in fact is very meaningless toss, wasted a lot of precious time!The thing is this, inadvertently found vim in the Win10 console window without parameters to display the "Ugandan Children" interface (in
As follows:Because UTF8 encoding is set, vim always garbled when displaying the error message of the VC compiler.Check the quick fix help and find a ready-made solution:"Compiler information transcoding The code is as follows:Copy code Function!
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