First, the preparatory work 1. Download Vim74 and Vim-gdb for version 7.4:(1) vim7-4.tar.bz2 (2) vimgdb-for-7.4 2. Uninstall existing VIM and related componentsIf you have already installed Vim through Software Center, you need to uninstall it sudo
1. Installing Cscopesudo Install Cscope2. Generate an index fileCD linux-3.8. - make xxx-config make Cscope3. Configure VIM ifHas ("Cscope") Set CSPRG=/usr/local/bin/Cscope Set Csto=0set CST Set Nocsverb"Add any database in current
With Vim is the code of the fly, suddenly xshell off the line, it is too painful.So began to miss the VS code when the ctrl+s saved shortcut keys, Baidu a bit, on-line vim to achieve Ctrl+s save the shortcut key settings have problems, their own
Command
Simple description
: W
Saves the edited file content, but does not exit the vim Editor. The purpose of this command is to write the data in the memory buffer into the file specified when Vim is started.
1. Vim mode:Edit mode (Command mode)Input modeLast-line mode2. Mode conversion:I: Switch to input mode before the current cursor characterA: After the current cursor character, switch to input modeO: Create a new row below the current cursor line
In advance, I have a Linux rookie, but even the rookie, but also to keep a good study, day-to-day heart. I've been studying CentOS in my spare time. Often to view, edit files, surf the internet and see the Vim. The text editor used is VI, a recent
2015-06-04 by KomileVIM Basic CommandOpen a file vim index.phpDescription of several modesNormal ModeThat is, the general Normal mode, the default into Vim, in this mode.Insert ModeInsert mode, in fact, refers to the state of editing input. In
To open multiple files:1.vim has not started when: input vim file1 file2 in the terminal ... filen can open all the files you want to open 2.vim has been started input: Open file can be opened again, and in this case, VIM will display the contents
Macros are a collection of commands and are widely used, including the word editor in MS Office, the Excel editor and various text editors, and Vim, one of the most powerful text editors in Linux systems, also supports macro operations, and this
1, the VI3 modeGeneral mode, edit mode, command mode2. Quick operationI, I insert: I insert text at the current cursor, I (uppercase I) at the beginning of the insertionA, a increases: A is entered by the next word where the cursor is located, and a
Do back-of-the-envelope calculations in placeIn Vim, we can use the expression register to directly perform mathematical operations and then insert the results into our documentation.The expression register can be = accessed by accessing, in insert
Snipmate IntroductionSnipmate a powerful code completion plug-in, customizable code templates, and the ability to complement words.Vim plugin SnipmateSnipmate InstallationUnzip the snipmate.zip into the ~/.vim directory. Where the snippets directory
Whether it's Linux or Cygwin, Vim will need to be configured when the system has just been installed and vim is used. In the case of not configured, like the arrow keys, enter, BACKSPACE will not be the normal response. Because Vim uses the VI
x Delete the characters under the current cursorDW Deletes the remainder of the word after the cursor.d$ the remaining portion of the line after the cursor is deleted.DD deletes the current line. the C function is 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),
Distinguish between Real Lines and Display LinesUnlike many text editors, Vim makes a distinction between real lines and display lines. When the "wrap" setting is enabled (and it's on by default), each line of text that exceeds the width of the
When you have just installed Ubuntu or Debian, you will find gedit and vim open Chinese will be garbled, here is the solutionOpen VIM configuration file, location in/ETC/VIM/VIMRC in which to join Set fileencodings=utf-8,gb2312,gbk,gb18030Set
Vim tab Turn four spacesVim/etc/vim/vimrcSet et sta sw=4 sts=4
For a saved file, you can use the following method to replace the Space and tab:tab is replaced with a space:: Set ts=4: Set Expandtab:%retab!Space is replaced with tab:: Set ts=4:
I posted my use of vim configuration and plug-in configuration, these things can only be a script stack, no discussion of efficient code reading development.Let's write the frequently used commands, and start with the Configure F-Series shortcut
Install javacomplete and vimjavacomplete in ubuntu vimIn Linux, there is no lightweight JavaIDE similar to JCreateor. Although there are many imperfections in vim's combination with javacomplete, it can solve the problem of java code completion to a
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