This dotfiles repo is a fork of thoughtbot's dotfiles.
I chose thoughtbot's dotfiles b/c:
- It can be used across all Unix-like environments (both OSX and Linux).
- It assumes you use terminal vim (not macvim).
- It only includes essential configurations and plugins.
Clone this repo to any machine you intend to work:
git clone git://github.com/Hong-Kim/dotfiles.git
Then run the installation script:
cd dotfiles
./install.sh
This will create dotfile symlinks in your HOME directory, clone vundle
to
the ~/.vim/bundle/vundle
directory, and use vundle to install all vim plugins.
Zsh is assumed (i.e. all shell configuration is done in ~/.zshrc
). Switch to
it, if not already:
chsh -s /bin/zsh
If you do not have zsh
installed, you must install it first, using brew
or
apt-get
depending on your OS. This is also true for tmux
and vim
. If you
are on a linux machine and vim complains you do not have a ruby-supported
version of vim, you should install vim-nox
.
Explanations for some of my personal settings:
- Emacs-keybindings on the command line: Vim's modal editing isn't so great on the command line. You have no indication of whether you are in insert-mode or normal-mode, which leads to many typos.
Ctrl+t
as my tmux prefix:Ctrl+a
is used for beginning-of-line cursor movement. So instead, I useCtrl+t
(t is a mnemonic for tmux)- Rbenv: I use rbenv. Running
~/.rbenv.sh
(originally written by crpdm) will install rbenv and the ruby version 1.9.3-p392-railsexpress. - Pretty git logging: Borrowed from Gary Bernhardt's .githelpers.
Settings/ideas stolen from yadr (mostly
located in the ~/.vim/plugin/settings
directory):
- Solarized-dark colorscheme: I prefer it over the
github
colorscheme (used by thoughtbot). Download and apply the solarized-dark iTerm2 theme. - Convenient keybindings: See the
~/.vim/plugin/settings/keymap.vim
file.
Additional vim plugins use (see the .vimrc.bundles
file for a complete list):
- Lusty-explorer: I use
ctrlp most of the time, but still need a decent file/directory navigator once
in a while, and the
:e
command doesn't cut it. - Vim-unimpared: I use it for the
[+<space>
,]+<space>
commands that add blank lines above and below the current line.