Thursday, May 27, 2010

Re: tabdo left or right

Hi,

Adam wrote:
> Does anybody know if it's possible to have :tabdo only execute on, say,
> the tabs to the right of the current tab?

I don't think so. You might have to resort to something like

for t in range(tabpagenr() + 1, tabpagenr('$'))
exe t . 'tabn'
" do your work here
endfor

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: