How to change visudo editor from nano to vim?

When I use visudo, it always opens it with nano editor. How to change the editor to vim?