-
Install homebrew package manager
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
-
Install python, lua, ruby by
brew
$ brew install python $ brew install lua $ brew install ruby
-
Install vim and macvim; macvim is going to replace the system vim with the
--with-override-system-vim
flag on$ brew install vim --with-python --with-ruby --with-perl --with-lua $ brew install macvim --env-std --with-override-system-vim --with-cscope --with-python --with-ruby --with-perl --with-lua --HEAD
$ git clone https://brucedsu@bitbucket.org/brucedsu/dotvim.git ~/.vim
$ cd ~/.vim && ./install-vim
-
YouCompleteMe only supports python 2.7, NOT python 3 and above
-
For better YouCompleteMe experience, just use macvim (overriding system vim)
$ cd ~/.vim/plugins/YouCompleteMe $ ./install.py --clang-completer --js-completer --java-completer $ ./install.py --all
- Set "Terminal Type" to "xterm-256color-italic"
- Check "Italic text allowed" in iTerm's preference
- Add all menlo for powerline fonts in the font folder
- Also add monaco for powerline font
- In iTerm2 preferences, set "Regular Font" to "14pt Menlo Regular"
- Set "Non-ASCII Font" to "14.4pt Inconsolata-dz for Powerline"
- F1: CtrlPBuffer
- F2: NERDTreeToggle
- F3: TagbarToggle
- F4: PasteToggle
- F5: indentLinesToggle
- F6: RainbowParentheses
- F7: Autoformat
- F8: ToggleVimShell
- F11: RunCode in VimShell, supports interaction, e.g. user input
- F12: RunCode by vim-quickrun, no interaction, but fast