Ⅰ. 插件描述
This is a global/generic highlight for vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'j16180339887/global-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'j16180339887/global-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'j16180339887/global-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/j16180339887/global.vim
Ⅳ. 文档说明
Highlight all files which vim does't support.
Useful for system/server log files, unknown filetypes and plain text files.
Example
- Copy and save the following json code from wikipedia
{
"firstName": "John",
"lastName": "Smith",
"isAlive": true,
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021-3100"
},
"phoneNumbers": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "office",
"number": "646 555-4567"
},
{
"type": "mobile",
"number": "123 456-7890"
}
],
"children": [],
"url": "https://en.wikipedia.org/wiki/JSON"
}- Save it to "wiki.json" which vim knows that it's a json file.
- Save it to "wiki.jjj" which vim doesn't know that it's a json file.

NOTE: I installed the MonoKombat.vim theme
Install with Vundle
Bundle 'joeky888/Global.vim'Install with Plug
Plug 'joeky888/Global.vim'Install with Pathogen
cd ~/.vim/bundle
git clone --depth 1 https://github.com/joeky888/Global.vim.gitLicence: Public domain