ViM - my editor of choice
I’ve been coding and administering servers for quite a while now and early on I decide to go with ViM as my editor and begin to learn the deep ways of it.
- Take the time to learn the basics
- Spend a bit of time trawling through other people’s .vimrc file - you will learn a lot about what you can change and how things can be set up
- Use buffers http://stackoverflow.com/questions/102384/using-vims-tabs-like-buffers
- Consider using set of plugins that bring together a bunch of functionality - like SPF13
One liners
When one downloads the ‘citation entry and references’ from the T & F journal sites, it produces an ‘illegal’ bibtex document. This1 will fix up the entries:
%s/@article {,/\="@article{".line(".").","/
links
installing/updating plugins
The plugin infrastructure for ViM is awesome, for spf13:
cd $HOME/.spf13-vim-3/
git pull
edit ~/.vimrc.bundles.local
vim +BundleInstall! +BundleClean +q
Vimwiki
A useful plugin for writing text based notes is vimwiki. I am adopting it based on this post on taking notes
Fugitive
This is a fantastic interface to Git. Code and introduction
Advanced: folding
Vim has the ability to collapse (fold) and expand sections of the file to remove them from view until they need to be looked at. You can find a basic introduction.