Daily Vim Devotional
Cleaning up old git branches

After working on a project for a while using Git, you probably have a bunch of old local copies of branches you don’t need any more. Here’s an easy way to delete all the old ones you don’t need:

  • Make a file with the list of branches: git branch > file
  • Edit that file and remove the lines with the branches you want to keep (like, say, master.) Save it.
  • Run cat file | xargs git branch -D

All of the branches listed in file will be deleted from your local repository. It’s not too hard to do all of this in Vim with a few sprinkles of r! and :w.

thoughtbot:

A grab-bag of tips to speed up your vimming!

Feel free to add your own tips, questions, comments or concerns over on the forum!


ctrlp
command-t
rails.vim
surround.vim
Ben&

VimR

A new GUI for Vim on Mac. Tried it out and it looks pretty nice, though I won’t be leaving terminal Vim and Tmux any time soon.

http://vimr.org/

(Source: twitter.com)

thoughtbot:

How to clean up your Rails views with I18n’s built-in pluralization tools.

angular.vim

I’m working on some Angular now. This plugin looks like it has some nice stuff.

https://github.com/burnettk/vim-angular

syntax :on

vim-addon-local-vimrc

This plugin lets you have a local .vimrc in any directory, perfect for those projects where you want to customize your config, but not globally.

https://github.com/MarcWeber/vim-addon-local-vimrc

javascript-libraries-syntax.vim

Provides syntax highlighting for all the most popular JavaScript libraries.

https://github.com/othree/javascript-libraries-syntax.vim

Page Up and Page Down with Control-F and Control-B

^F to go forward a page, ^B to go back a page.

:help PageDown :help PageUp