歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 10.10 安裝Vim 7.3

Ubuntu 10.10 安裝Vim 7.3

日期:2017/2/28 16:20:47   编辑:Linux教程

步驟一:

先從官網下載vim7.3源碼。 http://www.vim.org/sources.php

也可以用 Mercurial 獲取最新版本的源碼

步驟二:

解壓文件後,從終端進入vim7.3的源碼目錄,命令行操作如下:

$ cd vim73

$ cd src

$ make distclean #清理一下上一次編譯生成的所有文件

$ ./configure --with-features=huge --enable-pythoninterp=yes \

--enable-gui=gnome2 --enable-cscope --enable-fontset --enable-perlinterp \

--enable-rubyinterp --with-python-config-dir=/usr/lib/python2.6/config #編譯配置

$ make && sudo make install

說明一下下:

編譯配置中的 --enable-gui=gnome2 是啟用GUI,也就是可以使用gvim。還是不習慣終端裡的vim

--enable-pythoninterp=yes 是啟用vim對python的支持

--with-python-config-dir=/usr/lib/python2.6/config 指向python的配置文件夾,因為個人安裝版本/路徑的不同,這裡根據自己的實際情況而稍做修改。(我 用的Ubunut 10.10的python默認安裝路徑)

還有個欠抽的配置選項可以用:

--with-compiledby="A bingo boy which be capable to compile VIM"

哈哈~~適合超級自戀的人使用。

Copyright © Linux教程網 All Rights Reserved