Solve VIM's painful process-general Linux technology-Linux programming and kernel information. The following is a detailed description. To become a qualified linux programmer, either vim or emacs must be done. I have admired and feared this edited environment, which is regarded as a dinosaur-level environment for a long time.
Emacs seems to be a little more dinosaur, at least so many shortcuts after crtl + I really do not dare to think about it, so let's go all the way to VIM.
Syntax validation after php syntax highlighting:
Map : W! Php-l
Ctrl + B in the esc status to verify php syntax
But sudo apt-get install php5-cli is required
Code folding
In fact, Vim's PHP syntax file ($ VIMRUNTIME/syntax/php. vim) already supports PHP code folding, but it is not opened by default.
You can add the following content to the beginning of the file (after the comment:
----
Let php_folding = 1
----
Search :/
1. The legendary command "AB"
The command "AB" can also solve the problem of the input mailbox, because I have defined too many shortcut keys in Vim/Vi, for example, enter the email address, enter the contact number, enter the parity standard, and enter the PHPChina administrator ...... I couldn't remember it anymore. One night later, the thunder and lightning struck me. I suddenly found this command-"AB". I finally found a solution to the problem! Oh yeah!
The information that is frequently used in the original input can be so simple, LOOK --: AB replaces the original information
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