global.vim


Ⅰ. 插件描述

This is a global/generic highlight for vim.

Ⅱ. 基本信息

创建日期:  2017-09-17
使用用户:  2
Github星:  19
插件作者:  Joeky

Ⅲ. 安装方法

使用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"
}
  1. Save it to "wiki.json" which vim knows that it's a json file.
  2. Save it to "wiki.jjj" which vim doesn't know that it's a json file.
    wiki.json

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.git

Licence: Public domain

添加新评论