This package is a port of vim-textobj-syntax for emacs. It provides evil text objects for consecutive items with same syntax highlight.
Switch branches/tags
Nothing to show
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.
screenshots
LICENSE
README.org
evil-textobj-syntax.el

README.org

README

https://melpa.org/packages/evil-textobj-syntax-badge.svg

About

This package is a port of vim-textobj-syntax. It provides evil text objects for consecutive items with same syntax highlight.

For outer (a) object, if both leading and trailing white spaces exist, only trailing whitespaces are included.

./screenshots/a-leading-trailing.png

Otherwise, leading/trailing/none white spaces are included.

./screenshots/a-leading.png

./screenshots/a-trailing.png

For inner object, no leading and trailing white spaces are included.

./screenshots/i.png

Customize variable

h (standing for “syntax (h)ighlight”) is used as textobj key by default. You can customize it using the following variables.

evil-textobj-syntax-i-key (Default: “h”)

Keys for evil-i-syntax.

evil-textobj-syntax-a-key (Default: “h”)

Keys for evil-a-syntax