/vim-syntax-retdecdsm

RetDec disassembly syntax highlighting for Vim

Primary LanguageVim ScriptMIT LicenseMIT

RetDec Disassembly Syntax For Vim

A Vim syntax-highlighting file for the output from the RetDec's disassembler.

Screenshot

RetDec is a retargetable machine-code decompiler with an online decompilation service. One of its outputs is a disassembled version of the input binary file. This Vim plugin adds syntax highlighting when viewing these disassemblies.

Installation

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

You can also install the plugin manually by copying the syntax/retdecdsm.vim file to your ~/.vim/syntax directory. If that directory does not exist, create it.

Usage

When you open a RetDec's disassembly in Vim, execute :set ft=retdecdsm to enable syntax highlighting. Alternatively, you can put the following autocommand to your .vimrc:

" Consider *.dsm files as files containing disassembly from the retdec.com
" decompilation service.
autocmd BufNewFile,BufRead *.dsm set filetype=retdecdsm

License

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

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