RetDec disassembly syntax highlighting for Vim

RetDec Disassembly Syntax For Vim

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


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.


If you use pathogen, simply go into the bundle directory and clone the repository in there:

cd ~/.vim/bundle
git clone

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.


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
" decompilation service.
autocmd BufNewFile,BufRead *.dsm set filetype=retdecdsm


Copyright © 2016 Petr Zemek ([email protected]) and contributors.

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

Related Repositories



RetDec disassembly syntax highlighting for Vim ...

Top Contributors