Text editor GNU nano instead of vim

sir im getting gnu nano editor in my visual studio code instead of vim…i am not able to use it…please help

What do you mean that you are “getting” nano editor?
Do you mean that when you “git commit”, you get nano editor instead of vim?

try this to change the default editor in ubuntu

yes sir after the git commit

okay sir i will try to change the default editor ,thanks

For git use cases: