sponsor Vim development Vim logo Vim Book Ad

textobj-motionmotion : Text objects for bounds of 2 motions

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

created by
Takeshi Banse
 
script type
utility
 
description
*textobj-motionmotion* is a Vim plugin to provide text objets to select a
piece of text bounded by the cursor positions of the following 2 motions.

For example, an asterisk (*) is used to denote the cursor position:
>
  ./runtime/doc/mo*tion.txt
<
"vim3bt." will select 'doc/motion' as follows:
(here (^) indicates the selected texts)
>
  ./runtime/doc/motion.txt
            ^^^^^^^^^^
<
Roughly speaking, this plugin makes an operator such that ["^x]c{motion} to
be able to respond ["x]cim{motion}{motion} (*im* is the default key mapping).
Hence the name "motionmotion" has been derived from.

Note that this plugin is far from complete. Please use *[range]* or
*Visual-mode* in the real world!

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

Latest version:
https://github.com/hchbaw/textobj-motionmotion.vim

Document in HTML format:
http://hchbaw.github.com/experiment/vim/textobj-motionmotion.html

 
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
textobj-motionmotion-v0.0.2.2.zip 0.0.2.2 2013-10-03 7.0 Takeshi Banse Fix docs; thank you very much pekepeke!
textobj-motionmotion-v0.0.2.1.zip 0.0.2.1 2012-11-16 7.2 Takeshi Banse correct docs; no code changes
textobj-motionmotion-v0.0.2.zip 0.0.2 2012-11-08 7.2 Takeshi Banse Initial upload
ip used for rating: 44.220.184.63

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