about summary refs log tree commit diff
path: root/src/etc/vim/ftplugin/rust.vim
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-05-29 23:43:52 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-18 17:01:22 -0700
commitbd3bebcf60793477da390471d6d00a5523d716b4 (patch)
treefae0eed55063a30a293f730cf0a7dbc29a3aaa25 /src/etc/vim/ftplugin/rust.vim
parent303cadfbb3addd30dafdc2bcb5db994ab3bb30ab (diff)
downloadrust-bd3bebcf60793477da390471d6d00a5523d716b4.tar.gz
rust-bd3bebcf60793477da390471d6d00a5523d716b4.zip
Rename :Run and :Expand to :RustRun and :RustExpand
Diffstat (limited to 'src/etc/vim/ftplugin/rust.vim')
-rw-r--r--src/etc/vim/ftplugin/rust.vim32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/etc/vim/ftplugin/rust.vim b/src/etc/vim/ftplugin/rust.vim
index fee59b58687..6e373b2ddc4 100644
--- a/src/etc/vim/ftplugin/rust.vim
+++ b/src/etc/vim/ftplugin/rust.vim
@@ -60,24 +60,24 @@ onoremap <silent> <buffer> ]] :call rust#Jump('o', 'Forward')<CR>
 
 " Commands {{{1
 
-" :Run will compile and run the current file. If it has unsaved changes, they
-" will be saved first. If it has no path, it will be written to a temporary
-" file first. The generated binary is always placed in a temporary directory,
-" but run from the current directory.
+" :RustRun will compile and run the current file. If it has unsaved changes,
+" they will be saved first. If it has no path, it will be written to a
+" temporary file first. The generated binary is always placed in a temporary
+" directory, but run from the current directory.
 "
-" The arguments passed to :Run will be passed to the generated binary.
+" The arguments passed to :RustRun will be passed to the generated binary.
 "
 " If ! is specified, the arguments are given to rustc as well. A -- argument
 " separates rustc args from the args passed to the binary.
 "
 " If g:rustc_path is defined, it is used as the path to rustc. Otherwise it is
 " assumed that rustc is in $PATH.
-command! -nargs=* -complete=file -bang -bar -buffer Run call rust#Run(<bang>0, [<f-args>])
+command! -nargs=* -complete=file -bang -bar -buffer RustRun call rust#Run(<bang>0, [<f-args>])
 
-" :Expand will expand the current file using --pretty.
+" :RustExpand will expand the current file using --pretty.
 "
-" Any arguments given to :Expand will be passed to rustc. This is largely so
-" you can pass various --cfg configurations.
+" Any arguments given to :RustExpand will be passed to rustc. This is largely
+" so you can pass various --cfg configurations.
 "
 " If ! is specified, the first argument will be interpreted as the --pretty
 " type. Otherwise it will default to 'expanded'.
@@ -87,14 +87,14 @@ command! -nargs=* -complete=file -bang -bar -buffer Run call rust#Run(<bang>0, [
 "
 " If g:rustc_path is defined, it is used as the path to rustc. Otherwise it is
 " assumed that rustc is in $PATH.
-command! -nargs=* -complete=customlist,rust#CompleteExpand -bang -bar -buffer Expand call rust#Expand(<bang>0, [<f-args>])
+command! -nargs=* -complete=customlist,rust#CompleteExpand -bang -bar -buffer RustExpand call rust#Expand(<bang>0, [<f-args>])
 
 " Mappings {{{1
 
-" Bind ⌘R in MacVim to :Run
-nnoremap <silent> <buffer> <D-r> :Run<CR>
-" Bind ⌘⇧R in MacVim to :Run! pre-filled with the last args
-nnoremap <buffer> <D-R> :Run! <C-r>=join(b:rust_last_rustc_args)<CR><C-\>erust#AppendCmdLine(' -- ' . join(b:rust_last_args))<CR>
+" Bind ⌘R in MacVim to :RustRun
+nnoremap <silent> <buffer> <D-r> :RustRun<CR>
+" Bind ⌘⇧R in MacVim to :RustRun! pre-filled with the last args
+nnoremap <buffer> <D-R> :RustRun! <C-r>=join(b:rust_last_rustc_args)<CR><C-\>erust#AppendCmdLine(' -- ' . join(b:rust_last_args))<CR>
 
 if !exists("b:rust_last_rustc_args") || !exists("b:rust_last_args")
 	let b:rust_last_rustc_args = []
@@ -112,8 +112,8 @@ let b:undo_ftplugin = "
 		  \|unlet! b:delimitMate_excluded_regions
 		\|endif
 		\|unlet! b:rust_last_rustc_args b:rust_last_args
-		\|delcommand Run
-		\|delcommand Expand
+		\|delcommand RustRun
+		\|delcommand RustExpand
 		\|nunmap <buffer> <D-r>
 		\|nunmap <buffer> <D-R>
 		\|nunmap <buffer> [[