The Vim plug-in that automatically checks PHP syntax, and the php syntax vim. The Vim plug-in that automatically checks PHP syntax. The php syntax vim is hard to avoid syntax errors such as a semicolon due to a large number of PHP statements recently written, the general check
Order Quick Check Card (i)Order Quick Check Card (ii)Vim Open command
Vim filename-Opens the file filename and places the cursor at the beginning of the first line
Vim +n filename-Opens the file filename and places the cursor at the beginning of nth
Due to the large number of PHP statements recently, it is inevitable that you may accidentally write less semicolons or other syntax errors. The general check method is to return to the command line to run php-l, or you can upgrade it and run it directly in Vim :! Php-l %, or bind this as a shortcut key, for example, mapF5 :! Php-l % CR, each time you press F5, you can immediately perform a syntax
Vim is a text editor developed from vi. Code completion, compilation, error jump, and other convenient programming functions are particularly rich and widely used by programmers. It is used in parallel with Emacs to become your favorite editor for Unix-like systems. Due to the large number of PHP statements recently, it is inevitable that you may accidentally write less semicolons or other syntax errors. the general
PHP Grammar automatic check of vim plugin, PHP syntax vim
Due to the recent write PHP more, occasionally hand-less write a semicolon and other grammatical errors, the general way is to go back to the command line run Php-l, or upgrade directly in Vim run:!php-l%, or then bind this as a shortcut key, such as: Map
Enable spell check: setspell to enable spell check. For more information, see helpspellzg. you can add words to the correct user dictionary (zgood) and add words to the correct internal dictionary (zGood) zw can add words to the user error Dictionary (zwr... enable spelling check
: Set spell to enable spelling check
Due to the recent write PHP more, occasionally hand-less write a semicolon and other grammatical errors, the general way is to go back to the command line run Php-l, or upgrade directly in Vim run:!php-l%, or then bind this as a shortcut key, such as: Map
:!php-l%
, you can perform a grammar check immediately whenever you press F5. But still feel slightly uncomfortable, because many Ides are checked
The best Chinese speed check list (cheatsheet)That year when learning Linux is relying on a common command small card, knock what command forget, often take up to see, later know this thing called Speed Check table (Cheatsheet), so began to consciously collect and organize a variety of commonly used quick check table. For many tools, reading books and large artic
Enable spelling check: Set spell to enable spelling checkFor more help information, see help spell.Zg can add words to the correct dictionary (z good)ZG can add words to the correct internal Dictionary (z Good)Zw can add words to the user error Dictionary (z wrong)ZW can add words to the internal error Dictionary (z Wrong)Zug can delete words from the correct dictionary (z undo good)ZuG can delete words from the internal error Dictionary (z undo Good)
As a result of the recent write PHP more, occasionally hand mistakenly write a semicolon and so on grammatical errors unavoidably, the general check way is to return to the command line to run Php-l, or upgrade the direct in vim run:!php-l%, or again this binding as shortcut keys, such as: Map
So wrote this Phpcheck.vim plug-in, the basic function is to save the PHP file syntax
http://blog.csdn.net/pipisorry/article/details/395084171. Replace VI with VIMVim is more powerful than VI, Vim is a superset of VI, and can solve many of the problems of habit, so it is necessary to use Vim to replace VI. Simply speaking, you can directly use the "Alias Vi=vim" command, but this can only be useful in this launch, the next time after the start, t
If it is the last window to be closed, then the vim will be exited.ZZ Save and exit.
Closes all windows, leaving only the current window
: Only record macros
Press Q and add any letter to start recording, and then press Q to end recording (this means that the macro in Vim can not be nested), when used @ Add macro name, such as QA ... Q record A macro named A, @a use this macro. Execute shell Command
:!comm
Vim note (6) -- a more comprehensive introduction of vim (for example, vim -- vim)
Vim configuration file~ /. Vimrc user's default configuration file ~ /. Vim/plugin/user's default script file storage directory ~ /.
17. Vim Introduction, Vim color display and move cursor, VIM general mode move cursor, VIM general mode copy, cut and pasteI. Introduction of VIMVim:vi version of the upgrade, the difference is: VI when editing text will not display color, and vim will.Its configuration file
5.1 Vim Introduction 5.2 Vim color display and move cursor
5.3 Vim General mode move cursor
5.4 Vim General mode copy, cut and paste
Vim is an upgraded version of VIVim with color displayInstalling Vim:yum install-y vim
I. Introduction of VIMVim is a powerful text editor, the upgrade version of VI, with color display, the default has three modes: General mode, command mode, edit modeInstall Vim[Email protected] ~]# VIM/ETC/PASSWD-bash:vim: Command not found[Email protected] ~]#[email protected] ~]# Yum install-y vim-enhanced...second, color display, Move Cursor[[email protected
includes all vi usage and adds many new usages. For example, it displays different colors for comments and parameters, and can also be used in other cases. there are a lot of sp or block selection, etc, I suggest you learn vi first. The reason is simple. vi is supported in all nuix and linux versions without installation.In addition to vi and vim, there are also Emacs, KVIM, Arachnophilia, Bluefish, Komodo Edit, NEdit, Gedit, Kate, and Quanta Plus ed
press"Q"Exit debugging (GDB will prompt whether to exit, and answer y), and then modify the code, compile, and debug until the final completion. When modifying code, you may not like vimgdb's key ing (for exampleCTRL-BIng to set breakpoints, and this key is a common page flip function), you can pressCancel vimgdb key ing, or you can directly modify the ing defined in the gdb_mappings.vim file.
Check out whether V
/nerdcommenter
Quick batch Add and subtract notes
[d] shift+v+ arrow key selected (default current line) -> , cc plus annotation ->, cu unlock annotation
Demo Tpope/vim-surround
Quickly wrap a word around a symbol, such as a quote
Tpope/vim-repeatrepeat to enhance, '. ' You can repeat the command
[D]cs "' [Inside]
" Hello world! "-> ' Hello world! '
DS "
" Hello world! "-> Hello world!
Ys
freely distributable
~
~ Become a registered Vim user!
~ Type: help register for information
~
~ Type: Q to exit
~ Type: help or for on-line help
~ Type: Help version7 for version info
Differences between VI and VIM
Vim has the following advantages:
1. Multi-Level undo we know that in VI, you can only undo the last command by u, but you can u
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.