When I use visudo, it always opens it with nano editor. How to change the editor to vim?
Type sudo update-alternatives --config editor
You will get a text like below.
Source From Here Preface Do you know the difference between the following syntax? view plain copy to clipboard print ? [x for ...