vim-log-syntax


Ⅰ. 插件描述

Vim syntax for log highlighting

Ⅱ. 基本信息

创建日期:  2013-03-08
使用用户:  52
Github星:  48
插件作者:  Alex Dzyoba

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'dzeban/vim-log-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'dzeban/vim-log-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'dzeban/vim-log-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/dzeban/vim-log-syntax

Ⅳ. 文档说明

Description

Vim syntax file to highlight various log files.

This syntax file describes how to highlight:

  • Error messages (containing 'error', 'fail', etc. words)
  • Warning messages (containing 'warning', 'delete', etc. words )
  • Strings ( Double quotes and single quotes )
  • Date values in various formats
  • Time values in various formats
  • Numbers - decimal and hex

This syntax is based on messages.vim - syntax file for highlighting Linux kernel
messages, but it's not bound to positioning of elements (messages.vim requires
your logs to start with Date and time values or it will not highlight anything).

Install

Copy or symlink this file to your $VIMRUNTIME/syntax directory or to
~/.vim/syntax directory

添加新评论