Menu

external links not working

Viki
Anonymous
2011-03-06
2013-04-17
  • Anonymous

    Anonymous - 2011-03-06

    Hello,

    I just installed Viki and tried it. I have a problem: external links don't work. As an example, this link:

    [[http://google.com]]
    

    gives that error:

    Error detected while processing function viki#MaybeFollowLink..<SNR>31_FollowL
    ink..<SNR>31_OpenLink..VikiOpenSpecialProtocol:
    line   19:
    E605: Exception not caught: Viki: Please define g:vikiOpenUrlWith_http or g:vi
    kiOpenUrlWith_ANY!
    Error detected while processing function viki#MaybeFollowLink..<SNR>31_FollowL
    ink:
    line   29:
    E171: Missing :endif
    Error detected while processing function viki#MaybeFollowLink:
    line    8:
    E171: Missing :endif
    

    On the other hand, [] does work as expected, asking to create a file "foo".

    This behaviour was obtained after installing tlib and viki using the most recent versions found in http://www.vim.org/scripts/ as of today.

     
  • Tom Link

    Tom Link - 2011-03-06

    There exists no default definition of either g:vikiOpenUrlWith_http or g:vikiOpenUrlWith_ANY for your OS or desktop environment. Please check the file autoload/viki.vim for the list of default definitions. *_ANY is defined at about line 350. The variable's value is a format string where %{FILE} is replaced with the full file name. You'll probably have to define one for your environment.

    HTH

     

Log in to post a comment.