2020年12月22日 星期二

vim 8.2 on Ubuntu 18.04

下載:
    git clone https://github.com/vim/vim.git

ref: Here

編譯:
$ make clean distclean

$ LDFLAGS=-rdynamic ./configure \
    --with-features=huge \
    --enable-fail-if-missing \
    --enable-largefile \
    --enable-multibyte \
    --enable-python3interp \
    --with-python3-command=python3.6 \
    --with-python3-config-dir=/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0 \
    --prefix=/usr
$ make
$ make install

加上個:
$ cd  /usr/share/vim
$ ln -s /usr/local/share/vim/vim82/  ./vim82


for Vim 9.0 and it works on XUbuntu 20.04
$ make clean distclean

$ ./configure \
    --with-features=huge \
    --enable-fail-if-missing \
    --enable-largefile \
    --enable-multibyte \
    --enable-python3interp \
    --with-python3-command=python3.8 \
    --with-python3-config-dir=/usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 \
    --prefix=/usr
$ make
$ make install
build 失敗時,可以試著將 src/auto/config.cache 給刪除
.vimrc
set shortmess-=S  (search時右下角有keyword總數)
let &t_TI = ""  (擋8.2亂碼)
let &t_TE = ""

沒有留言:

張貼留言