michaeljsmith / vim-indent-object

Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.
http://www.vim.org/scripts/script.php?script_id=3037
MIT License
735 stars 61 forks source link

doesn't work with repeat '.' #9

Open pinggit opened 11 years ago

pinggit commented 11 years ago

it doesn't work well with repeat, when you move to another indented text, it doesn't re-calculate. is it expected behavior?

michaeljsmith commented 11 years ago

Hi Ping,

I guess you are talking about the '.' operator?

I'm not sure if it's possible to achieve this in vimscript, do you know of any technique for grouping these actions into a transaction so that '.' works?

On 11 January 2013 03:19, pinggit notifications@github.com wrote:

it doesn't work well with repeat, when you move to another indented text, it doesn't re-calculate. is it expected behavior?

— Reply to this email directly or view it on GitHubhttps://github.com/michaeljsmith/vim-indent-object/issues/9.

pinggit commented 11 years ago

On 1/10/2013 6:25 PM, Michael Smith wrote:

Hi Ping,

I guess you are talking about the '.' operator?

I'm not sure if it's possible to achieve this in vimscript, do you know of any technique for grouping these actions into a transaction so that '.' works?

On 11 January 2013 03:19, pinggit notifications@github.com wrote:

it doesn't work well with repeat, when you move to another indented text, it doesn't re-calculate. is it expected behavior?

— Reply to this email directly or view it on GitHubhttps://github.com/michaeljsmith/vim-indent-object/issues/9.

— Reply to this email directly or view it on GitHub https://github.com/michaeljsmith/vim-indent-object/issues/9#issuecomment-12124334.

hi Michael: sorry I'm not an expert on that (I hope I were)... I just borrowed the concept from the plugin:"repeat" http://www.vim.org/scripts/script.php?script_id=2136 but I understood that is for the "map", not for the text-obj...

regards ping

michaeljsmith commented 11 years ago

If this works it sounds like a good idea. Unfortunately I don't think I'll have time soon to work on it!

On 11 January 2013 10:59, pinggit notifications@github.com wrote:

On 1/10/2013 6:25 PM, Michael Smith wrote:

Hi Ping,

I guess you are talking about the '.' operator?

I'm not sure if it's possible to achieve this in vimscript, do you know of any technique for grouping these actions into a transaction so that '.' works?

On 11 January 2013 03:19, pinggit notifications@github.com wrote:

it doesn't work well with repeat, when you move to another indented text, it doesn't re-calculate. is it expected behavior?

— Reply to this email directly or view it on GitHubhttps://github.com/michaeljsmith/vim-indent-object/issues/9.

— Reply to this email directly or view it on GitHub < https://github.com/michaeljsmith/vim-indent-object/issues/9#issuecomment-12124334>.

hi Michael: sorry I'm not an expert on that (I hope I were)... I just borrowed the concept from the plugin:"repeat" http://www.vim.org/scripts/script.php?script_id=2136 but I understood that is for the "map", not for the text-obj...

regards ping

— Reply to this email directly or view it on GitHubhttps://github.com/michaeljsmith/vim-indent-object/issues/9#issuecomment-12125543.

urxvtcd commented 2 years ago

I know this issue is ancient, but I have implemented than in my fork: https://github.com/urxvtcd/vim-indent-object