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"
반응형
'【🧰 SW Info & Tips】 > Vim' 카테고리의 다른 글
| [Ubuntu 20.04] vim 9.0 설치 (0) | 2025.09.29 |
|---|---|
| SrcExpl 특정 상황에서만 동작 (0) | 2023.12.08 |
| VundleVim PluginSearch Error 해결 (0) | 2023.12.07 |
| vi 개발환경 Setting based on Vundle #3 (0) | 2022.12.28 |
| vi 개발환경 Setting based on Vundle #2 (0) | 2022.02.24 |
댓글