/************************************************************************************** * Vim Vundle youcompleteme * Description: * Prior to the installation of Vim in the ycm out of the problem, can not be installed, this time to spend a little bit
1. Replace the contents of the current line:: s/from/to/ (S is substitude): s/from/to/ : Replaces the first from, in the current row, with a to. If the current row contains more than one from, only the first
to replace text in VIM:1. Replace the contents of the current line:: s/ from/to/(S is substitude): s/ from/to/: Replaces the first from, in the current row, with a to. If the current row contains more than one from, only the first one is replaced. :
Use a lot of vim configuration version, how to say, want to lightweight do not hugad messy function; If you do not care if the response is fast, focus on the function is strong, you can refer to the configuration strategy of the Great God of Vim
1 Enter your own vim mkdir./bundile/vundle2 Execute git clone https://github.com/gmarik/vundle.git in vim peer./bundle/vundle download some plug-in files to the./bundle/vundle3 Writing your own VIM configuration set nocompatible "be improvedFileType
To search up from the current cursor position, use the following command:/pattern EnterWhere pattern represents a specific sequence of characters to search for.To search down from the current cursor position, use the following command:? pattern
Vim is divided into three modes: General mode, edit mode, command mode1. General modeGeneral mode can move cursor, delete, paste copy and other operationsMove Cursor
After a break from source insight, decide to take the time to properly configure and learn the following VIMSo I found the great God's configuration HTTPS://GITHUB.COM/HUMIAOZUZU/DOT-VIMRCAccording to the introduction of the page, the following
VI commandYY the line where the cursor is copiedP Paste behind the cursorDD Delete the line where the cursor is locatedVim-p 1.c 2.c 3.c Open multiple filesJ+t for file switchingWA: Save AllQA: Exit All/+ the string to look up:/printf means to look
Progress bar principle: Data is growing from 0%~100%, but does not change lineImplementation code for the progress bar:650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/2E/wKiom1eHjzmQTBK-AABy_zCJji8892.png "title=" Stdout2.png "alt="
Some of the simplest configurations are those that can be written in the. VIMRC:
First, note that in the. vimrc file, you can use the "write off a line of configuration."
Set nocompatible "Turn off VI compatibility mode, where
1, borrowed from the k-vim of the Wklken great Godgit clone https://github.com/wklken/k-vim.git2, install the necessary packageYum Install-y python-devel.x86_64sudo yum groupinstall ' development Tools 'sudo yum install The_silver_searchersudo yum
The following tips appear when you install Vim in Ubuntu 12.10:Reading Package List ... CompleteAnalyzing Dependency tree for PackageReading status information ... CompleteSome software packages cannot be installed. If you are using the unstable
Linux--vim Common operationsInsert command:
Command
Role
A
Insert the word specifier where the cursor is located
A
Insert at the end of the line where the cursor is
I
Insert
Environment CentOS 6.7 Vim 7.3Installing VundleVundle (Vim bundle) is a vim plug-in manager. It is to integrate GIT operations, the user needs to do is to go to GitHub to find the name of the plugin they want to install, update and uninstall can
1, when the VI is opened by default command mode, to enter the input mode, you need to press A or I key.Command mode:: Wq Save and exit: W only save does not eject: Q Do not save exit: q! Do not save forced exits: wq! Save and Force exit2 . FindIn
The code jump is important when you are using VIM to read C + + code, and this problem is encountered when learning Redis code.After the online search through the practice found cscope more useful, can be very convenient to achieve jump1. Installing
First, the problem description:Under Windows to install Git-"installed Msys2-" installed and updated vim (7.4), and then found in the use of Vim can not use the BACKSPACE key, press the arrow key will be played ABCD, no language.Second, problem
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