vimsyntaxforlog


Ⅰ. 插件描述

Vim syntax sample for log files

Ⅱ. 基本信息

创建日期:  2012-10-29
使用用户:  1
Github星:  4
插件作者:  muscly

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'muscly/vimsyntaxforlog'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'muscly/vimsyntaxforlog'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'muscly/vimsyntaxforlog'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/muscly/vimsyntaxforlog

Ⅳ. 文档说明

Overview

Vim syntax sample for log files

Sanpshot

log.txt

Installation

  • Copy log.vim to ~/.vim/syntax/log.vim or $HOME/vimfiles/syntax/log.vim
  • Append the following snippet to your vimrc file.
    au BufNewFile,BufRead *.log set filetype=log

    Tip

=========================

  • Append the following snippet to your vimrc file. And press 'F5' key to reload and scroll automatically. You can press Ctrl + C to stop.
    map <F5> :sleep 1000ms<CR>:e<CR>G<F5>

Reference

添加新评论