ubuntu set vi as default editor
VIM=<base directory where Vim executable is placed>
VIMRUNTIME=<base directory where Vim runtimes are kept>
EDITOR=$VIM/vim
E.g:
VIMRUNTIME=/usr/bin
EDITOR=/usr/bin/vim
Source: vim.fandom.com
ubuntu set vi as default editor
VIM=<base directory where Vim executable is placed>
VIMRUNTIME=<base directory where Vim runtimes are kept>
EDITOR=$VIM/vim
E.g:
VIMRUNTIME=/usr/bin
EDITOR=/usr/bin/vim
Source: vim.fandom.com