Ⅰ. 插件描述
Syntax highlighting for nerdtree + vim-deviconsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vwxyutarooo/nerdtree-devicons-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vwxyutarooo/nerdtree-devicons-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vwxyutarooo/nerdtree-devicons-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vwxyutarooo/nerdtree-devicons-syntax
Ⅳ. 文档说明
## nerdtree-devicon-syntax
This vim plugin adds syntax for nerdtree with vim-devicons. This repository is forked from vim-nerdtree-syntax-highlight. Because nerdtree-devicon-syntax has mutch less features, I decided to split repository.
If you feel vim-nerdtree-syntax-hilight makes nerdtree to slow, this might possibly be solution.
Also this fixed GUI Vim issue vim-nerdtree-syntax-highlight/issues/16.

notice
To make it faster, this plugin less carful to hilighting icons. Also not supporting g:NERDTreeFileExtensionHighlightFullName option or using without vim-devicons.
Installation:
Requireds
add this line to your .vimrc or neovim configuration file (usually it is in '~/.config/nvim/init.vim').
Example is for VimPlug:
Plug 'vwxyutarooo/nerdtree-devicons-syntax'Default colors
let s:colors = {
\ 'brown' : "905532",
\ 'aqua' : "3AFFDB",
\ 'blue' : "689FB6",
\ 'darkBlue' : "44788E",
\ 'purple' : "834F79",
\ 'lightPurple' : "834F79",
\ 'red' : "AE403F",
\ 'beige' : "F5C06F",
\ 'yellow' : "F09F17",
\ 'orange' : "D4843E",
\ 'darkOrange' : "F16529",
\ 'pink' : "CB6F6F",
\ 'salmon' : "EE6E73",
\ 'green' : "8FAA54",
\ 'lightGreen' : "31B53E",
\ 'white' : "FFFFFF"
\ }generate_files.sh script
There is a script folder called generate_files.sh that will generate all the files supported by this plugin by default for a quick review. These files will be generated on a 'files' subfolder.