I thought perhaps vim was in some compatibility mode of some sort. To make sure it was using vim instead of vi, I set the VISUAL environment variable but was still unable to get into visual mode (hitting the v key).Any suggestions?
Why can I not do visual mode when using visudo?
vim;sudo
Normally, visudo ignores the VISUAL and EDITOR variable for security reasons and calls vi, so the compatibility mode of vim is enabled.Read How to set visudo to use a different editor than the default on Fedora? to change the default editor.