hendrikb / vimfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim Installation

Prerequisites

on Ubuntu & Linux Mint ...

sudo apt-get install libpython3-dev libpython-dev libperl-dev libruby2.0 curl libx11-dev libxtst-dev libx11-dev libxt-dev libsm-dev libxpm-dev ruby-dev libncurses5-dev git terminator

on Arch Linux ...

sudo pacman -S git terminator ruby

All other given dependencies seem to be satisfied by a clean default install of Arch Linux (only tried it once). Please be aware, that installing ruby via pacman can interfere with ruby environment changers like http://rvm.io

You will need to use a good terminal emulator, such as terminator - we basically installed that for you.

Install vim

... as we need it.

# do once:
mkdir ~/code
cd ~/code

git clone https://github.com/vim/vim.git vim
cd vim

# do regularly
cd ~/code/vim
git pull
make distclean
./configure --with-x --enable-fail-if-missing --enable-rubyinterp=dynamic --enable-multibyte --enable-fontset --enable-gui=gtk2 --enable-gtk2-check --enable-gnome-check --enable-motif-check --with-features=huge --with-compiledby=Hendrik Bergunde --with-gnome --enable-pythoninterp=dynamic --enable-python3interp=dynamic --enable-perlinterp=yes
make
sudo make install

# make sure everythin worked well:
# does the following command show a very recent version of vim?
# (i.e. not your distro's package version)
vim --version

Install vim configuration

git clone --branch=master https://github.com/hendrikb/vimfiles.git ~/.vim
cp ~/.vimrc ~/.vimrc.old ; ln -sf ~/.vim/vimrc ~/.vimrc
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cd ~/.vim
./update_bundles.sh

Install most awesome "Source Code Pro for Powerline" fonts on Ubuntu/Linux Mint

For Details on those fonts, that will make your vim will look pretty cool, check out the projects website: https://github.com/Lokaltog/powerline-fonts

cd ~/code
git clone https://github.com/Lokaltog/powerline-fonts.git
cd powerline-fonts
./install.sh

After you installed your fonts to ~/.fonts you should now switch to these fonts in your terminal emulator application. Therefor, in Terminator for example, go to the Preferences and disable system fonts, select "Source Code Pro for Powerline" (or anything similar).

If colors don't seem to work (you should see a lot of yellow/green and syntax highlighting), make sure your environment variable TERM is set to something xterm-256color. You can add something like...

export TERM=xterm-256color

... to your ~/.bashrc.

You should now be able to able to use Vim from your command line. :)

About


Languages

Language:Vim Script 99.0%Language:Shell 0.6%Language:Ruby 0.4%