Skip to content

DanManN/JavaDecompiler.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This is a configurable version of the vimscript http://www.vim.org/scripts/script.php?script_id=446 that originally used just jad.

Original Description:

When you edit a .class file using vim, this plugin will decompile the class file for you and display it in the current buffer.

Admittedly, the buffer management is not very robust, but it's a very handy plugin nonetheless. How much cooler is it to view decompiled code using your favorite editor than to download a new UI to view Java code in?!

Installation

Use your plugin manager of choice.

  • Pathogen
    • git clone https://github.com/DanManN/JavaDecompiler-vim ~/.vim/bundle/JavaDecompiler-vim
  • Vundle
    • Add Bundle 'https://github.com/DanManN/JavaDecompiler-vim' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/DanManN/JavaDecompiler-vim' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/DanManN/JavaDecompiler-vim' to .vimrc
    • Run :PlugInstall

Then set g:javad_cmd to a command that decompiles a .class file as input. e.g.

let g:javad_cmd = 'java -jar <path-to>/cfr.jar' # using cfr

or

let g:javad_cmd = 'jad -p' # using jad

About

Automatically decompiles java class files and displays java code.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Vim Script 100.0%