On Thu, 29 Oct 2009 19:22:52 +0900, Andy Wokula <[email protected]> wrote:
>> Try textobj-user <http://www.vim.org/scripts/script.php?script_id=2100>. >> With textobj-user, what you want can be written as follows: >> >> call textobj#user#plugin('item', { >> \ '-': { >> \ '*pattern*': '^-\(\s\+\).*\(\n\s\1.*\)*\n', >> \ 'select': 'I', >> \ }, >> \ }) >> >> Then you can edit an item with dI, yI, etc. > > Kana, maybe I'm missing something in "text-object"'s help file, but > how do make this text object behave linewise? textobj-user provides two ways to define a text object -- with function and with regular expression. It's possible to specify wise of a text object if it is defined with function, but it's currently impossible for a text object defined with regular expression. I've never realized about the problem because I defined only characterwise text objects with regular expression. Thank you for reporting. I'll fix it later. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
