On 06/02/13 23:11, Niels Kobschätzki wrote:
> Hi,
>
> TextMate has a bundle that is called Hyperlink Helper. Its function is
> that I can highlight a passage of text and then either via a command
> make a link out of it with the content of the clipboard as URL or that
> the passage is searched via google, wikipedia or yahoo and an
> appropriate link is created. The interesting thing is that the style of
> the link depends on the set syntax. Thus when I use the bundle with a
> Markdown-file the link becomes a Markdown-link, if I use it in an
> HTML-file a link in the format of HTML created.
> Does anybody know if there's a plug-in for vim that has a similar
> functionality?
>
> Thanks,
>
> Niels
>
Hm, AFAIK, there isn't, but it is certainly possible. To build this
functionality, you would need to add a global plugin parameterized with
a buffer-local variable defining how to build a link, and then set that
variable, probably in the various filetype-plugins for file types where
links are possible. Something similar in concept to the matchit plugin,
which has a b:match_words variable which is set by the filetype-plugins
for some filetypes.
Best regards,
Tony.
--
"The C Programming Language -- A language which combines the
flexibility of assembly language with the power of assembly language."
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, February 6, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment