Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 

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.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published