Ⅰ. 插件描述
An url textobject for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'leonb/vim-textobj-url-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'leonb/vim-textobj-url-speak-now'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'leonb/vim-textobj-url-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/leonb/vim-textobj-url
Ⅳ. 文档说明
# vim-textobj-uri
Vim plugin that adds a new url text object
Installation
I recommend using [Tim Pope's pathogen
plugin](https://github.com/tpope/vim-pathogen), [Shougo's NeoBundle
plugin](https://github.com/Shougo/neobundle.vim) or [Gmarik's Vundle
plugin](https://github.com/gmarik/Vundle.vim) to install this.
To install this plugin with NeoBundle:
NeoBundle 'LeonB/vim-textobj-url', {'depends': 'kana/vim-textobj-user'}This plugin depends on
vim-textobj-user so make sure that's
installed.
Usage
This plugins adds a au and a iu text object.
A couple of examples (the cursor is represented by |):
- This is
|a link to Google: http://www.google.com ciu- This is a link to Google:
|
- <a href="mailto:me@myhomepage.com">E-mail
|me!</a> vau- <a href="__mailto:me@myhomepage.com__
|&quto;>E-mail me!</a>
License
Same terms as Vim itself (see license)