Adaptive tabbing in vim

Viewed 1141

I happen to work on code in which some modules use tabs for indentation while others use spaces. Many text editors such as Np++ has some sort of an adaptive tabbing feature, which use spaces for indentation if the previous line (or block of code) use spaces, or tabs as the case may be.

I haven't seen anything in vim like this. Is there any such plugin or setting for this?

4 Answers
Related