Ⅰ. 插件描述
Simple syntax highlighting for tcpdump command outputⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '1995parham/vim-tcpdump'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '1995parham/vim-tcpdump'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '1995parham/vim-tcpdump'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/1995parham/vim-tcpdump
Ⅳ. 文档说明
VIM-TCPDUMP
Introduction
Simple syntax highlighting for tcpdump output files saved with .tcpd extension
written just for fun .... so it may have many problems ... :-))
What does it look like?
Installation
This project can either be installed manually or by using pathogen.
Manual Installation
Download syntax/tcpdump.vim and copy the file to .vim/syntax/ in your home folder.
Download ftdetect/tcpdump.vim and copy the file to .vim/ftdetect/ in your home folder.
Installation with Git & Pathogen
- Install pathogen into
~/.vim/autoload/and add the
following line to your~/.vimrc:
call pathogen#infect()
Make a clone of the
vim-zimplrepository:$ mkdir -p ~/.vim/bundle $ cd ~/.vim/bundle $ git clone https://github.com/1995parham/vim-tcpdumpOR use git submodules:
$ git submodule add https://github.com/1995parham/vim-tcpdump.git bundle/vim-tcpdump $ git submodule init