diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-30 16:35:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-18 17:01:22 -0700 |
| commit | 1273f94cbb19608e6a4e02c54d8543f6fe648a47 (patch) | |
| tree | f25be1eadea7cde0cf190fdb96687facd14c54fb /src/etc/vim/ftplugin/rust.vim | |
| parent | 918eda59bee9a627919d11b7bc9f909d7a9676ff (diff) | |
Add commands :RustEmitIr and :RustEmitAsm
Diffstat (limited to 'src/etc/vim/ftplugin/rust.vim')
| -rw-r--r-- | src/etc/vim/ftplugin/rust.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/vim/ftplugin/rust.vim b/src/etc/vim/ftplugin/rust.vim index ed5d721de08..65f9f4105ad 100644 --- a/src/etc/vim/ftplugin/rust.vim +++ b/src/etc/vim/ftplugin/rust.vim @@ -66,6 +66,12 @@ command! -nargs=* -complete=file -bang -bar -buffer RustRun call rust#Run(<bang> " See |:RustExpand| for docs command! -nargs=* -complete=customlist,rust#CompleteExpand -bang -bar -buffer RustExpand call rust#Expand(<bang>0, [<f-args>]) +" See |:RustEmitIr| for docs +command! -nargs=* -bar -buffer RustEmitIr call rust#Emit("ir", [<f-args>]) + +" See |:RustEmitAsm| for docs +command! -nargs=* -bar -buffer RustEmitAsm call rust#Emit("asm", [<f-args>]) + " Mappings {{{1 " Bind ⌘R in MacVim to :RustRun @@ -91,6 +97,8 @@ let b:undo_ftplugin = " \|unlet! b:rust_last_rustc_args b:rust_last_args \|delcommand RustRun \|delcommand RustExpand + \|delcommand RustEmitIr + \|delcommand RustEmitAsm \|nunmap <buffer> <D-r> \|nunmap <buffer> <D-R> \|nunmap <buffer> [[ |
