magodo / dotFile

.vim and .vimrc for setting up environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kinds of dot files

VIM

Ubuntu 12.04 - LTS

  1. Install VIM74:
  • Remove the installed old version:

    $ sudo apt-get remove vim vim-runtime gvim
    
  • Download VIM74:

    $ hg clone https://code.google.com/p/vim/
    
  • Install prerequisite libraries:

    $ apt-get install ncurses-dev build-essential mercurial python-dev
    
  • Build Vim from sources:

    $ cd ~/vim/src
    $ make distclean
    $ # No slash behind "config" 
    $ ./configure --with-python-config-dir=/usr/lib/python2.7/config --enable-pythoninterp -disable-gui --without-x
    $ make
    $ sudo make install
    
  1. Edit .vimrc:
  • The .vimrc is stored by. Just put it in $HOME
  1. Install Vundle(Plugin Manager):
  • Set up Vundle:

    $ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  1. Install plugins:

     $ vim ~/.vimrc
    
  • In VIM:

    :PluginInstall
    
  1. Install YCM:
  • Install development tools and CMake:

    $ sudo apt-get install build-essential cmake python-dev
    
  • Compiling YCM: Refer to YCM Official Manual

  1. Customise:
  • Install CSApprox: (which make gvim-only colorschemes work in terminal vim)

  • Install terminal fonts(this font is compatible with vim-airline):

    • Download fonts-master:

      https://github.com/Lokaltog/powerline-fonts

    • Run ./install.sh in this package

    • Edit ~/.vimrc(Integrate with powerline font)

      let g:airline_powerline_fonts = 1

    • Change terminal font to "Powerline" Fonts.

Arch - Linux version 4.8.6-1-ARCH

  • Install vim
  • Install vundle
  • Install plugins via vundle
  • Install powerline, powerline-vim, powerline-font via pacman

TMUX config

There is a cool config repo here, which supports nested tmux sessions. This is really helpful...

ZSH

About

.vim and .vimrc for setting up environment.


Languages

Language:Shell 38.5%Language:Vim Snippet 36.1%Language:Vim Script 25.4%