Ⅰ. 插件描述
Opens links found on the current line; can also send emails (with mailto://)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/openurl'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/openurl'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/openurl'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/OpenURL
Ⅳ. 文档说明
Type :OpenURL to start the utility.
It will then search the current line for links, if only one link is found then this link is opened.
If several links are found; OpenURL will display a prompt like this one:
1: http://www.vim.org
2: www.youtube.com
3: mailto://jonasmo441@gmail.com
?>
You then answer accordingly with a number.
The following kinds of urls are allowed:
protocol://domain.ext
protocol://www.domain.ext
protocol://www.subdomain.domain.ext
www.domain.ext
user@domain.ext
If an email address is found; mailto:// will be the assumed protocol.
If a www.___.___ link is found; http:// will be the assumed protocol.
These protocols are used/found by OpenURL:
http(s)://
ftp(s)://
mailto://
You can send any bugs or feature requests to my email address.
OpenURL.vim Copyright (C) 2013 Jonas Møller <jonasmo441@gmail.com>
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; go to http://www.gnu.org/copyleft/gpl.html for details