sponsor Vim development Vim logo Vim Book Ad

textobj-syntax : Text objects for syntax highlighted items

 script karma  Rating 0/2, Downloaded by 1016  Comments, bugs, improvements  Vim wiki

created by
Kana Natsuno
script type
*textobj-syntax* is a Vim plugin to provide |text-objects| to select one or
more items which are syntax highlighted.

For example, if you edit the following line in your vimrc, characters which
are underlined with "~" are syntax highlighted.

nnoremap <silent> ql  :<C-u>clist<Return>
~~~~~~~~ ~~~~~~~~      ~~~~~     ~~~~~~~~

So |<Plug>(textobj-syntax-a)| and |<Plug>(textobj-syntax-i)| (which are mapped
from  |ay| and |iy| by default) select one of the underlined items if the
cursor is located at the one of them.

- Vim 7.2 or later
- |textobj-user| 0.3.8 or later (vimscript#2100)

Latest version:

Document in HTML format:
install details

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-textobj-syntax-0.0.0.zip 0.0.0 2009-07-18 7.0 Kana Natsuno Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github