Ⅰ. 插件描述
A Vim syntax-highlighting file for YARA rules covering YARA 3.11Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 's3rvac/vim-syntax-yara'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 's3rvac/vim-syntax-yara'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 's3rvac/vim-syntax-yara'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/s3rvac/vim-syntax-yara
Ⅳ. 文档说明
Vim Syntax Highlighting for YARA Rules
A Vim syntax-highlighting file for YARA
- Covers YARA 3.11.

Installation
The installation has two steps.
(1) If you use pathogen, simply go
into the bundle directory and clone the repository in there:
cd ~/.vim/bundle
git clone https://github.com/s3rvac/vim-syntax-yara.gitYou can also install the plugin manually by copying thesyntax/yara.vim
file to your ~/.vim/syntax directory. If that directory does not exist,
create it.
(2) Put the following autocommand to your .vimrc:
" Consider all .yar/.yara files to be YARA files.
autocmd BufNewFile,BufRead *.yar,*.yara setlocal filetype=yaraLicense
Copyright (c) 2017 Petr Zemek (s3rvac@gmail.com) and contributors.
Distributed under the MIT license. See theLICENSE
file for more details.