An up-to-date Vim syntax-highlighting file for YARA rules
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
syntax
LICENSE
README.md
screenshot.png

README.md

Vim Syntax Highlighting for YARA Rules

An up-to-date Vim syntax-highlighting file for YARA rules. Covers YARA 3.7.

Screenshot

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.git

You can also install the plugin manually by copying the syntax/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=yara

License

Copyright (c) 2017 Petr Zemek (s3rvac@gmail.com) and contributors.

Distributed under the MIT license. See the LICENSE file for more details.