update-alternatives

To change vi editor run

To display current vi config, run