【🧰 SW Info & Tips】/Vim

[Ubuntu 20.04] 최신 vim 설치

[一日一學, 一日一新] 2025. 9. 29.

git에서 받아 설치하기

 

1.1 사전 작업

아래 명령어를 사용하여 기존 패키지에 포함된 vim을 제거한다.

sudo apt remove vim vim-runtime

 

 

다음 vim에 필요한 의존성 패키지들을 build 해준다.

sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep vim

 

 

1.2 vim 설치하기

git clone 뒤, make로 build 한 후 설치하면 끝이 난다.

git clone https://github.com/vim/vim.git
make distclean  # 이전에 vim을 build 한 적이 있다면
make
sudo make install

 

 

python3에 대한 설정을 원하는 경우, make 전에 아래와 같이 한 뒤 make를 진행하면 된다.

./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp \
            --enable-python3interp \
            --with-python3-config-dir=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu \
            --enable-perlinterp \
            --enable-luainterp \
            --enable-cscope \
            --enable-gui=auto \
            --enable-gtk2-check \
            --with-x \
            --with-compiledby="j.jith"

 

반응형

댓글