Execute the following commands to install on your machine:
mkdir ~/tmp
git clone http://github.com/aletzo/vim-config.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Open vim and execute:
:PluginInstall
Find and install a Monaco_Linux-Powerline.ttf:
https://gist.github.com/kevinis/c788f85a654b2d7581d8#file-monaco-for-powerline-ttf
To install the exuberant ctags (required for the taglist and the tagbar plugins) in OS X:
- download the compressed file (or the latest version): http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags-5.8.tar.gz/download
- tar xzvf ctags-5.8.tar.gz
- cd ctags-5.8
- ./configure
- make Normally you should execute a "make install", but 2 errors will spawn. Do the followings:
- Duplicate the directory ctags-5.8 to ctags
- sudo cp ctags /usr/local/bin/ctags
- sudo chmod -R 755 /usr/local/bin/ctags
- sudo cp /usr/local/bin/ctags/ctags.1 /usr/local/share/man/man1/ctags.1
- sudo chmod 644 /usr/local/share/man/man1/ctags.1
- make install (should work without errors) Now you have to override the ctags that comes with OS X
- put 'export PATH="/usr/local/bin/ctags:$PATH"' in your .bash_profile
- restart the terminal
- which ctags should return "/usr/local/bin/ctags"
How to keep the ctags up-to-date (from http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html):
-
Execute:
git config --global init.templatedir '~/.git_template' mkdir -p ~/.git_template/hooks
-
Create .git_template/hooks/ctags and mark as executable:
#!/bin/sh set -e PATH="/usr/local/bin:$PATH" dir="
git rev-parse --git-dir
" trap 'rm -f "$dir/$$.tags"' EXIT git ls-files |
ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql mv "$dir/$$.tags" "$dir/tags" -
Create .git_template/hooks/post-commit and mark as executable:
#!/bin/sh .git/hooks/ctags >/dev/null 2>&1 &
-
Create .git_template/hooks/post-merge and mark as executable:
#!/bin/sh .git/hooks/ctags >/dev/null 2>&1 &
-
Create .git_template/hooks/post-checkout and mark as executable:
#!/bin/sh .git/hooks/ctags >/dev/null 2>&1 &
-
Create .git_template/hooks/post-rewrite and mark as executable:
#!/bin/sh case "$1" in rebase) exec .git/hooks/post-merge ;; esac
-
Use
git init
in existing repositories to copy these hooks in.
The tags file is located at PROJECT_ROOT/.git/tags
touch ~/.ideavim
echo "source ~/.vimrc" >> ~/.ideavim
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "$USER"
fi
}