compilar vim com luajit

obter vim repo

cd ~/dev/hg
hg clone https
://code.google.com/p/vim/
cd vim

limpe as versões anteriores

sudo apt-get remove vim vim-runtime gvim
sudo apt
-get remove vim-tiny vim-common vim-gui-common

pré-requisitos de instalação / link

sudo apt-get install python2.7-dev
sudo apt
-get install libperl-dev
sudo apt
-get install libluajit-5.1-dev

vincular cabeçalhos luajit

/usr/local/include $ sudo ln -sv /usr/include/luajit-2.0/lua.h
/usr/local/include $ sudo ln -sv /usr/include/luajit-2.0/luaconf.h
/usr/local/include $ sudo ln -sv /usr/include/luajit-2.0/lualib.h
/usr/local/include $ sudo ln -sv /usr/include/luajit-2.0/lauxlib.h
cd
`which luajit-2.0.0-beta9`
sudo ln
-sv luajit-2.0.0-beta9 luajit

configurar e fazer

cd ~/dev/hg/vim
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config --enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-luainterp --with-luajit --enable-fail-if-missing --enable-largefile --with-lua-prefix=/usr/local
make VIMRUNTIMEDIR
=/usr/share/vim/vim74

o que colocar em –with-python-config-dir:

locate python | grep '/config$'

usar checkinstall

sudo apt-get install checkinstall
cd
~/dev/hg/vim
sudo checkinstall

mais tarde, o vim pode ser desinstalado usando:

sudo dpkg -r vim

Defina o vim como seu editor padrão com alternativas de atualização.

sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update
-alternatives --set editor /usr/bin/vim
sudo update
-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update
-alternatives --set vi /usr/bin/vim