tyru / open-browser.vim

Open URI with your favorite browser from your most favorite editor
http://www.vim.org/scripts/script.php?script_id=3133
Other
509 stars 48 forks source link

Add command aliases #148

Open KSR-Yasuda opened 3 years ago

KSR-Yasuda commented 3 years ago

Cos mostly mistype...

idbrii commented 1 year ago

Couldn't you add them to your vimrc:

command! -nargs=+                                                       BrowserOpen            call openbrowser#_cmd_open(<q-args>)
command! -nargs=+ -complete=customlist,openbrowser#_cmd_search_complete BrowserOpenSearch      call openbrowser#_cmd_search(<q-args>)
command! -nargs=+ -complete=customlist,openbrowser#_cmd_search_complete BrowserOpenSmartSearch call openbrowser#_cmd_smart_search(<q-args>)
delcommand OpenBrowser
delcommand OpenBrowserSearch
delcommand OpenBrowserSmartSearch

Seems very unusual for a plugin to have two sets of identical commands and it means tab completion for :B is polluted with a bunch of extra commands.

Konfekt commented 6 months ago

There are also vim-aliases