Ⅰ. 插件描述
Reduce the cognitive load by hiding irrelevant PHP syntaxⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jeancarlomachado/concealphp'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jeancarlomachado/concealphp'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jeancarlomachado/concealphp'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jeancarlomachado/concealphp
Ⅳ. 文档说明
# Conceal PHP
A vim plugin that uses vim's conceal feature to hide unnecessary parts of the PHP syntax.
This is still a valid PHP file, when your cursor is over the line you see all the syntax details.

Installation
If you use vim plug:
Plug 'jeanCarloMachado/vim-php-conceal', { 'for': ['php'] }Options
By default Conceal PHP provides ligature for common symbols like ->.
If you use a font with ligature support like Fira Code you will want to disable this.
let g:conceal_php_disable_ligature=1Q & A
What if there's a syntax error in a concealed part?
For one the broken part will not be hidden if it's a wrong syntax.
But inline linters like ale make using this plugin even more enjoyable.