sponsor Vim development Vim logo Vim Book Ad

textobj-delimited : The textobject plugin to do well with each delimited part of a string.

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

created by
Masaaki Nakamura
 
script type
utility
 
description
This textobject provides the keymappings to select a part of a delimited string. id, ad, iD, aD is used in default.

# ... cursor
------------------------------------------------
key input: did

'#foo_bar_baz'   ->   '_bar_baz'
------------------------------------------------
key input: did

'foo_#bar_baz'   ->   'foo__baz'
------------------------------------------------
key input: did

'foo_bar_#baz'   ->   'foo_bar_'
------------------------------------------------
key input: d1id

'#foo_bar_baz'   ->   '_bar_baz'
------------------------------------------------
key input: d2id

'#foo_bar_baz'   ->   'foo__baz'
------------------------------------------------
key input: d3id

'#foo_bar_baz'   ->   'foo_bar_'
------------------------------------------------
key input: dad

'#foo_bar_baz'   ->   'bar_baz'
------------------------------------------------
key input: dad

'foo_#bar_baz'   ->   'foo_baz'
------------------------------------------------
key input: dad

'foo_bar_#baz'   ->   'foo_bar'
------------------------------------------------
key input: d1ad

'#foo_bar_baz'   ->   'bar_baz'
------------------------------------------------
key input: d2ad

'#foo_bar_baz'   ->   'foo_baz'
------------------------------------------------
key input: d3ad

'#foo_bar_baz'   ->   'foo_bar'
------------------------------------------------

Latest version : https://github.com/machakann/vim-textobj-delimited
 
install details
Unzip and just put all folders in your ~/.vim.
 

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-delimited.zip 1.1.0 2014-08-17 7.4 Masaaki Nakamura *   Bug fixes.
*   Change the treatment for ended delimiters.
*   Update documents.
textobj-delimited.zip 1.0.2 2014-07-23 7.4 Masaaki Nakamura * Fix up a bug on selection option.
* Fix up a bug on the charm to prevent multiple load.
textobj-delimited.zip 1.0.0 2014-07-04 7.4 Masaaki Nakamura Initial upload
ip used for rating: 54.226.235.222

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.
   
SourceForge.net Logo