numbers.vim
numbers.vim copied to clipboard
Preserve original 'set number' if filetype in exclusion list
When I added 'set number' and excluded nerdtree, tagbar and taglist, I found that my nerdtree have no line number on default because of the exclusion. So here I add some codes to preserve 'set number' effects when filetype is in exclusion list. Already tested :D
PS: Also found another bug that if the nerdtree or tagbar has been set to 'autofocus' then the first time it appears the line number will not works as we expected, I'm trying to fix it now.
@Armour if you fix that can you open another PR.
Thanks. Can you send me screenshots of this PR working. Video would be great too if its not too much trouble.
Okey
This is the screenshot before fix, you can see that I added 'set number' but the line numbers in nerdtree still disappeared due to the exclusion. This is not what I want...
After fix it, we now can keep the line numbers showing here if we add 'set number'.
Btw, if no 'set number', all works well like before.
Any plan to merge this PR?