Vim plugin that adds a new url
text object
I recommend using Tim Pope's pathogen plugin, Shougo's NeoBundle plugin or Gmarik's Vundle plugin 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.
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>
Same terms as Vim itself (see license
)