Ⅰ. 插件描述
Integrates PMD using Vim quickfix modeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/pmd-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/pmd-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/pmd-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/pmd.vim
Ⅳ. 文档说明
PMD (see http://pmd.sourceforge.net) is a utility that scans Java source code to find potential problems, unused variables, unnecessary imports, etc. This plugin integrates PMD with Vim using Vim's quickfix features (see :help quickfix).
To invoke PMD from Vim, either issue the command :Pmd or enter <Leader>pmd from command mode. The latter keystroke command may be customized. See the pmd.vim file for details.
The :Pmd command may take one argument, which the file or directory to run PMD against. If left out, PMD will run against the filename of the current buffer, which is also the behavior of the <Leader>pmd keystroke command.