Install Vim and set the default editor for Ubuntu

Server

Language :

Hi i’m Lovefield

Ubuntu usually has VIM installed. But sometimes that’s not the case. For example, if you install Ubuntu with WSL2 on windows.

1. install vim

Plain Text

apt update -y
apt upgrade -y
apt install vim

2. set default editor

Plain Text

select-editor

Select vim after the above command.

tip. set Git default editor to vim

Plain Text

git config --global core.editor "vim"

That was the brief article.

Lovefield

Web Front-End developer

하고싶은게 많고, 나만의 서비스를 만들고 싶은 변태스러운 개발자입니다.