Ⅰ. 插件描述
VIM syntax highlight for logcat filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'naseer/logcat'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'naseer/logcat'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'naseer/logcat'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/naseer/logcat
Ⅳ. 文档说明
#Logcat plugin for Vim
Description
This plugin turn up highlights for Android log files
The main highlights are based on the debug level.
Please see http://developer.android.com/guide/developing/tools/adb.html#logcat
for more information on Android logcat logs.
Installation
If you use pathogen plugin, just clone this repo in your bundle/ directory.
Otherwise, just copy the repo content in your .vim/ configuration subdir.
Your terminal needs to support 256 colors. Wich is the case for most X
terminals anyway.
Details on filetype autodetection
This plugins detects files with .lc or .logcat extensions, and tries to
perform a basic detection on other files. This part is scripted in the
ftdetect/ subdirectory.
Alternatively, if the detection fails, you can do :
set ft=logcat
to set the syntax.
Limitations
- Support for GUI vim is yet incomplete.
- Support for color schemes is inexistant.
- The colors have been chosen for a light background.