Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload/textobj
doc
plugin/textobj
README.md

README.md

textobj-enclosedsyntax

This is Vim plugin for treat enclosed syntax as text objext.

Now support following enclosed syntax as text object

  • Perl regex like /.../ (support like m|...| m#...#)
  • Perl litarel like q|...|, qq|...|, qw|...|, qx|...|, qr|...| (support like q#...# q!...! in the same way)
  • Perl here document
  • Ruby regex like /.../
  • Ruby literal like %|...|, %q|...|, %Q|...|, %x|...|, %r|...|, %w|...|, %w|...|, %W|...|, %s|...| (support like %#...# %!...! in the same way)
  • Ruby here document
  • eRuby tag like <%=...%>, <%...%>, <%#...%>

Screenshot

Perl

Perl screenshot

Ruby

Ruby screenshot

eRuby

eRuby screenshot

Install

This plugin depends on vim-textobj-user.

So you need to install vim-textobj-user together.

And you must syntax on to use this plugin.

Usage

Default key mappings is iq and aq (operator mode).

iq can use inner enclosed syntax as text object.

aq can use a enclosed syntax as text object.

For example diq to use delete inner enclosed syntax.

You can’t perform that action at this time.