码迷,mamicode.com
首页 > 系统相关 > 详细

从源码Build vim

时间:2016-08-06 17:21:18      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:

How to build vim

1. Build步骤

git clone --depth 1  https://github.com/vim/vim.git  # download the source code
cd vim/src
make distclean     # clean workspace if you build vim before
./configure --enable-pythoninterp --enable-rubyinterp  --enable-python3interp --enable-perlinterp --enable-luainterp --with-compiledby --enable-tclinterp  # can be ommited if do not used these features
make
sudo make install   # install the build bin to system file path

注意
1) Build 之前可以先把旧版本的vim卸掉
sudo apt-get remove vim-common vim-gnome vim-runtime vim-tiny vim-gtk
2) 安装Build vim需要的依赖 (未确认不安装是否可以)
sudo apt-get build-dep vim (若有依赖问题用aptitude来解决)

2. 如何确认Build成功呢:

1) 打开vim,界面显示 version 7.4.2161 (最新的版本号)
2) vim --version 检测版本号以及compile时间
    VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug  6 2016 16:04:21)
    ...
3) :version  同样检测版本号以及compile时间

version 7.4.1529 (before)
version 7.4.2161 (now)
version 7.4.1655 (macvim)


3. 一些感想
很开心,一直困扰我的gvim选择时丢掉最后一个字符的bug终于不存在了,还有,我终于学
会怎么从源码Build vim了,这就意味着我可以随时保证我的vim是最新版本的,一旦有什么
bug修复,我都能及时更新我的vim!


Refer to:

1. 最主要的参考: The Vim repository at GitHub
2. 删除旧版本以及python支持:Compiling Vim with Python and Ruby support on Ubuntu

从源码Build vim

标签:

原文地址:http://www.cnblogs.com/xianzhon/p/5744371.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!