1

As title. I want to check that if current tab is the last (rightmost) tab, how?

1 Answer 1

3

Just use the tabpagenr() function, which returns the number of the current tab page when called without any arguments, or the last tab page number when called with a '$'.

The following expression should tell you whether you're on the last tab:

tabpagenr() == tabpagenr('$')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.