Skip to content

jasonjson/dotfiles

Repository files navigation

Installation

cd ~/dotfiles
git pull
./install

Install python

  • From source code
    1. Download python source code
    2. ./configure --prefix=/usr && make && sudo make install
  • Use homebrew
    1. brew install python3, excutable is in /usr/local/bin and libraries are located in /usr/local/lib
    2. Use pip3 to install packages for python3 and pip for python2
  • Remember to update python path and install pylint for sytastic plugin.

Install vim

Do NOT install vim with conda python, remove conda python from your path

git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp=yes \
            --enable-pythoninterp=yes \
            --with-python-config-dir=/usr/lib/python2.7/config \
            --enable-python3interp=yes \
            --with-python-config-dir=/usr/lib/python3.6/config-3.6m-darwin \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --enable-gui=gtk2 \
            --enable-cscope \
            --prefix=/usr
cd src && sudo make install

Build vim from source

YouCompleteMe

This plugin is compatitable with conda python. Vim and Youcompleteme can have different python build

tmux and vim mapping

  1. system preference -> keyboard -> modify keys -> choose keyboard -> option == option
  2. change vim mapping
  3. Set alt/option key as meta key in Iterm2 profile key setting.