Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On a new installation:
- ======================
- sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
- libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
- libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
- sudo apt-get install checkinstall
- sudo apt-get remove vim vim-runtime gvim
- sudo apt-get remove vim-tiny vim-common vim-gui-common
- cd ~
- mkdir local_code
- cd local_code
- mkdir vim
- hg clone https://code.google.com/p/vim/
- Make sure the dev packages for the scripting languages you want are all
- installed. The configure below assumes you want lua, python 2 & 3, perl, and
- ruby. You’ll know you missed something if the ./configure step stops early
- (due to the --enable-fail-if-missing option).
- Also, you may have to adjust the python 2 & 3 config dirs if your installed
- versions are different. You need the directories containing the config.c
- file.
- After having done this at least once before now:
- ================================================
- dpkg -r vim
- cd ~/local_code/vim
- hg purge
- hg pull
- hg update -C
- After whichever you did:
- ========================
- #except this next thing might be just doable the first time. May as well re-do.
- ./configure --with-features=huge \
- --enable-rubyinterp \
- --enable-pythoninterp \
- --with-python-config-dir=/usr/lib/python2.7-config \
- --enable-python3interp \
- --with-python3-config-dir=/usr/lib/python3.3 \
- --enable-luainterp \
- --enable-perlinterp \
- --enable-gui=gtk2 \
- --enable-cscope \
- --prefix=/usr \
- --enable-fail-if-missing
- make VIMRUNTIMEDIR=/usr/share/vim/vim74
- sudo checkinstall
- #no idea if these are necessary after 1st time, but it seems likely enough
- #dpkg -r would unset these.
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement