vim-run-interactive icon indicating copy to clipboard operation
vim-run-interactive copied to clipboard

Shorter command name?

Open gylaz opened this issue 12 years ago • 3 comments

Thoughts on shortening the name of the command. If someone doesn't use a keyboard shortcut it's pretty long to type. Some ideas: RunIShellCmd, RunInteractiveCmd or simply RunCmd.

gylaz avatar Apr 14 '14 21:04 gylaz

I would still prefer to keep the original name as the base, but I think either (both?) of the following could ease this:

  1. Provide a short alias, ie :RunCmd
  2. Add a readme section that describes how to create an alias:
" Replace <YourShortCommandNameHere> with your desired command name
command! -nargs=* <YourShortCommandNameHere> :RunInInteractiveShell <f-args>

Do you think either or both of the above are a sufficient fix?

My thinking on keeping the original:

  1. I tend to lean towards the longer, more explicit name for clarity / ease of recal
  2. I made sure it was tab completable with :runi<TAB> => :RunInInteractiveShell

christoomey avatar Apr 18 '14 14:04 christoomey

I just wanted to bring up the idea due to the long name, but I don't feel strongly about it. I'm okay with just keeping the original. I think providing an alias might end up confusing users.

gylaz avatar Apr 18 '14 15:04 gylaz

@gylaz Vim will let you run commands without typing in the full command, so long as there are no conflicting commands with that name. For example, you should be able to :RunInInter echo 'hello', or :Run echo 'hello' without problem, but :R echo 'hello' will pretty likely conflict with another command starting with R.

PS. I realize this issue is from 2014 lol, but thought I'd reply given that the issue is still open :)

jesseleite avatar Oct 14 '21 20:10 jesseleite