numbers.vim icon indicating copy to clipboard operation
numbers.vim copied to clipboard

Preserve original 'set number' if filetype in exclusion list

Open Armour opened this issue 10 years ago • 3 comments

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 avatar May 25 '15 10:05 Armour

@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.

myusuf3 avatar May 25 '15 17:05 myusuf3

Okey before check 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 check 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.

Armour avatar May 26 '15 09:05 Armour

Any plan to merge this PR?

ytian81 avatar Mar 09 '19 22:03 ytian81