This is my vimrc with a script to install everything :) Enjoy.
Thanks to @Frew on StackOverflow for a big list of nice .vimrc tools.
- A terminal that supports 256 colors
- Python-enabled vim. On Mac, you can install vim with Python by running
brew install macvim --override-system-vim - A Powerline font (I like DejaVu Sans Mono for Powerline most)
- Syntastic - Syntax checking and linting with external tools
- NERD commenter - Toggle comments on code easily (leader (default is backslash), then c, then space to toggle comments)
- vim-autoformat - Formats code automatically with a button press! (F7)
... all installed with...
- Pathogen - Vim package installer
- Luna - Pretty colors :)
... and a huge .vimrc full of goodies.
It contains...
- My color scheme, modified from Solarized Dark
- cmd-left/right jump words
- option-left/right jump to beginning and end of line
- cmd-delete deletes words
- option-delete removes lines (undoable with cmd-Y)
- cmd-option-left/right is next/prev tab
- cmd-shift-leftright is to move tabs forward/backwards
- Make sure you have iTerm2 installed
- Go to Preferences... (cmd-,)
- General -> At the bottom, "Load Preferences from a custom folder or URL..."
- Enter the cloned repository directory (don't delete the repo if you plan on using this!
If it asks you to overwrite with your current profile, don't let it do that; and if you restart iTerm2 and it still shows your old profiles, then checkout the iterm2 config in the repo, and close iTerm2. It will prompt you for if you are okay with losing your old profile (If you're not, back it up!). You know what to do.