vim
Recently I have started improving my vi(m) abilities, with the intent of having a coherent editing environment on both OS X at home and Linux (Ubuntu) at work.
Resources:
- http://www.vim.org/
- pathogen (tpope‘s thing for separating out different vim goodies into their own directories)
- Derek Wyatt‘s vimeo vim screencasts
Other people’s .vimrc files
Setting up (from scratch):
Set up alias in .bashrc to allow use of single vim
1 2 3 4 5 | # Linux # alias g='gvim --remote-silent "$@"' # # OS X alias m='mvim --remote-silent "$@"' |
Create a .vimrc file with the contents of Derek Wyatt’s four bits of vimrc files.
Create a new .vim directory and then a .vim/plugins wherein to install pathogen.vim, and create a .vim/bundle for it to use.
Add this to the top of .vimrc:
1 2 3 | " pathogen http://www.vim.org/scripts/script.php?script_id=2332 call pathogen#runtime_append_all_bundles() |