[count]<leader>cc|NERDComComment| Comment out the current line or text selected in visual mode.
[count]<leader>cn|NERDComNestedComment| Same as
cc but forces nesting.
[count]<leader>c<space>|NERDComToggleComment| Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa.
[count]<leader>cm|NERDComMinimalComment| Comments the given lines using only one set of multipart delimiters.
[count]<leader>ci|NERDComInvertComment| Toggles the comment state of the selected line(s) individually.
[count]<leader>cs|NERDComSexyComment| Comments out the selected lines with a pretty block formatted layout.
[count]<leader>cy|NERDComYankComment| Same as
cc except that the commented line(s) are yanked first.
<leader>c$|NERDComEOLComment| Comments the current line from the cursor to the end of line.
<leader>cA|NERDComAppendComment| Adds comment delimiters to the end of line and goes into insert mode between them.
|NERDComInsertComment| Adds comment delimiters at the current cursor position and inserts between. Disabled by default.
<leader>ca|NERDComAltDelim| Switches to the alternative set of delimiters.
[count]<leader>cl[count]<leader>cb|NERDComAlignedComment| Same as |NERDComComment| except that the delimiters are aligned down the left side ( <leader>cl) or both sides ( <leader>cb).
[count]<leader>cu|NERDComUncommentLine| Uncomments the selected line(s).
yS - add a surrounding and place the surrounded text on a new line + indent it
yss - add a surrounding to the whole line
ySs - add a surrounding to the whole line, place it on a new line + indent it
ySS - same as ySs
Visual mode
-----------
s -in visual mode, add a surrounding
S -in visual mode, add a surrounding but place text on new line + indent it
Insert mode "不建议使用
-----------
<CTRL-s> - in insert mode, add a surrounding
<CTRL-s><CTRL-s> - in insert mode, add a new line + surrounding + indent
<CTRL-g>s - same as <CTRL-s>
<CTRL-g>S - same as <CTRL-s><CTRL-s>
PIV
The most feature complete and up to date PHP Integration for Vim with proper support for PHP 5.3+ including latest syntax, functions, better fold support, etc.
PIV provides:
PHP 5.3 support
Auto generation of PHP Doc (,pd on (function, variable, class) definition line)
Autocomplete of classes, functions, variables, constants and language keywords
Better indenting
Full PHP documentation manual (hit K on any function for full docs)