On Tue, 19 Dec 2017 10:53:46 +1300, Pavel Hančar wrote:
>   Hello,
> I am a newbie in vimb, so sorry if this question is bothering. Please, can
> sombody explain me, how to use shortcuts. My idea was this:
> 
> :shortcut-add gt https://translate.google.com
> :tabopen gt
> 
> but it does not work and following does not work as well:
> 
> :shortcut-add https://translate.google.com gt
> :tabopen gt
> 
> It always opens https://duckduckgo.com/html/?q=gt
> 

As far as I remember, it doesn't work without arguments.

> Of course I would prefere shortcut like this:
> gt -> https://translate.google.com/#auto/en/%s
> 
> The problem is that even without the argument it does not work.

It works with arguments. Just use the proper syntax (i.e. it is described
in the man page):

        :shortcut-add gt=https://translate.google.com/#auto/en/$0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
vimb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vimb-users

Reply via email to