Ⅰ. 插件描述
ildasm for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yuratomo/ildasm-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yuratomo/ildasm-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yuratomo/ildasm-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yuratomo/ildasm.vim
Ⅳ. 文档说明
ildasm.vim
Description
Windows SDKに付属するildasm.exe用のvimプラグインです。
ildasmといのはVisual Studioの「オブジェクトブラウザ」の単体版ツールです。
.Net Frameworkのアセンブリファイルからクラスの定義を調べることが可能です。
Requirements
必要なのものは次のとおり。
- ildasm.exe (Windows SDK)
Setting
アセンブリの設定
次のように必要なアセンブリを.vimrcに定義する
let g:ildasm_assemblies = [
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\mscorlib.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\WindowsBase.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationCore.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationFramework.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Core.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Drawing.dll',
\ 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Net.dll',
\ ]
ildasmのパス指定
ildasm.exeにパスを通す
Usage
- 起動
次のコマンドで起動するとクラス一覧が表示される
(初回起動後は遅いですが、キャッシュするので次回以降は早いはず)
:Ildasm
- クラス一覧
クラス名の上でReturnキーを押すとクラス定義が表示されます。
- クラス定義
クラス名の上でReturnキーを押すとクラス定義が追加表示されます。
Backspaceでクラス一覧に戻ります。
- キャッシュのクリア
一度ロードしたクラス一覧は~/.vim_ildasm にキャッシュします。
これをクリアする場合は、次のコマンドを実行してください。
:IldasmClearCache
ScreenShots
Visual Studioのオブジェクトブラウザ
Ildasm クラス一覧
Ildasm クラス定義

HISTORY
*v1.0 2012.07.27 yuratomo
Initial version