Too simple to say, just find a manual can find, here to say some tips, but also recently used to force out of the study, hehe, but quite convenient.
1. Global replacement(1) v + G + $ Select all, then enter: s/original string/target
I. Installation of XDEBUG
1, compile and install Xdebug, you can also use pecl install Xdebug
wget http://xdebug.org/files/xdebug-2.3.2.tgz
tar-zxvf xdebug-2.3.2.tgz
cd
Vim file +line
For example:
root@xxx-ubuntu:/ics-android/ics-src/system/core/init# grep init.rc *-rn init.c:706:init_parse_config_file ("/
Init.rc "); util.c:79: * ("/dev/socket") as dictated in init.rc. This socket was inherited by the
http://download.csdn.net/download/litao0976/6325921
Recently configured with Vim, you can quickly build projects like Sourceinsight, find files, sign jumps, function lists, and auto-complete.
Moreover, the symbol update is automatic, and from now
Move cursorOn: K NK: Move up n rows 9999k or GG can move to the first line G move to the last rowUnder: J NJ: Move Down n rowsLeft: H NH: Move n columns to the leftRight: L nl: Move n columns to the rightW: Cursor moves forward with a word NW: the
Flash screen Problem Solving method:
1, temporary sister method Ctrl + a CTRL+G
2, the thorough method modifies the/ETC/SCREENRC, changes Vbell on to Vbell off, as if there are two places.
Rollback issues:
I only see this method now, but I
VIM Tools
Vim is a very useful tool, a small and capable code editor, no wonder many people are regarded as "The God of the editor." IDE Write code, in addition to the code debugging function, other functions vim can be implemented, and Vim does not
VIM basic CommandsVim Editor is case sensitive
i editor enters text input mode, ESC exits edit mode
[Baskspace] Key (or press [ctrl-h] key) to delete text
[Return] key to the next line
[ESC] key into command mode, regardless of the
Method One1, press CTRL + SHIF +; Enter the bottom row mode2. Write the line number that you want to indent in bulk, follow the format: "line number 1, line number 2>" Input command, if you want to indent a tab value from 4 to 11 lines in bulk, the
For the first use VI, there are a few notes to remind:1. When you open a file with VI, you are in command mode, and you want to switch to insert mode to enter text. Toggle method: Click on the letter "i" "Command mode" to enter "Insert Mode", then
Vim Editor
Commands commonly used in the Vim editor are stored in the ~/.viminfo file
There are 3 modes in the VIM Editor: Command mode, last line mode, and input mode, and three modes are converted as shown:
Vim file name #
First, the common editor:Nano, Gedit, VI, Vim.The difference between VI and VIM:Vim is an enhanced version of VI.Three, the principle:When opened with an editor, it is opened in memory. After the save is written to the file.Four, several
Upload the. vimrc file to the user's home directoryThe contents of the file are as follows:Autocmd bufnewfile *.py,*.cc,*.SH, *.java exec": Call Settitle ()"func settitle ()ifExpand"%:e") =='SH'Call Setline (1,"#!/bin/bash") Call Setline (2,"########
/********************************************************************** * Vim regular expression match replacement String * Description: * with Vim has been used for several years, usually also replace the string more, and rarely replaced with
The common use of VI1. General modeCtrl+f Move Down one pageCtrl+b Move up one pageCtrl+d Move Down half a pageCtrl+u move up half a pageN[enter] cursor down n line, n for number, Enter for keyNG moves to the nth row of the fileG move to the last
Find a replacement App example:
Copy/etc/profile to/tmp/directory, remove white space characters from the beginning of the/tmp/profile file with the Find replacement command:%[email protected]^[[:space:]]\[email protected]@g
Copy the/etc/
Recently work in need to change files on the Linux server, suffering from the various commands of VIM is not familiar with, today we summarize and familiar with a variety of VIM commands, so as to improve work efficiency. Late Continuous updateVim
Create a new VIMRC in the user's home directory. For example:Vim ~/.VIMRCthen you can copy it in. The configuration is as follows:"turn off VIM consistency principleSet Nocompatible"Show Line NumbersSet number"sets the row and column information for
One, vim toolsVim is an upgraded version of VI, VIM with color display, divided into general mode, editing mode and command mode1. Install Yum install-y vim-enhanced2, Vim color display is based on the contents of the file display, its configuration
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