Vim

Vim Screencasts

March 16th, 2010 0 Comments

Derek Wyatt’s Screencasts – By far the best series on learning Vim I’ve seen.  Must see.
http://www.vimeo.com/user1690209/videos

UPDATE – Derek Wyatt has created a new, more organized site for his Vim tutorials
http://www.derekwyatt.org/vim/vim-tutorial-videos/

Vimcasts – This is a good link to add to your rss reader. Updates fairly often with good vim tips.
http://vimcasts.org/

Codeulate Screencasts’ Vim for Rails Developers – I actually haven’t gotten to watch this yet but I will be getting it soon.
http://www.codeulatescreencasts.com/products/vim-for-rails-developers

My GTD Tools

November 17th, 2009 0 Comments

The following is a list of tools that I use on a daily basis to support my way of Getting Things Done:

  • Remember the Milk – My main inbox and list manager.
  • Concentrate – My Pomodoro timer for bursts of highly concentrated work.
  • Wallet notepad and mini pen – For writing down “stuff” that comes to mind.
  • MacVim – Text Editor for editing files of projects, goals, and accomplishments.
  • Dropbox – For syncing project files and folders between multiple computers.
  • Two Tray Inbox – One tray for incoming and one for ‘to read’.
  • Pen and paper – For mind mapping and collecting.
  • Books, Blogs, and Audiobooks – For sharpening the axe.

Vimerperator Pass Through

August 26th, 2009 0 Comments

For those of you who going mouseless in Firefox using Vimperator, here’s a good tip that has solved some problems for me.

Use Pass Through Mode by hitting ctrl-z to disable Vimperator on the current page to get normal operation of your keys.  This is especially helpful for flash players that need keyboard input or web apps like Gmail that have their own keyboard shortcuts.  Then just hit the escape key to return to using Vimperator.

Ctrl-z : Enters pass through mode.

Esc : Escapes pass through mode.

Vim is a Time Machine

July 30th, 2009 0 Comments

Vim has several advanced ways of undo the changes made in file, however, I’m not going to go into all of them here but just show you one.  The :earlier and and :later command in vim can move you backwards and forwards in time through your change history.  Very much like Time Machine in OSX.

Note: This is NOT a substitution for source control!

:earlier {count}	Go to older text state {count} times.
:earlier {N}s		Go to older text state about {N} seconds before.
:earlier {N}m		Go to older text state about {N} minutes before.
:earlier {N}h		Go to older text state about {N} hours before.
:later {count}		Go to newer text state {count} times.
:later {N}s		Go to newer text state about {N} seconds later.
:later {N}m		Go to newer text state about {N} minutes later.
:later {N}h		Go to newer text state about {N} hours later.

Below are some links to more information about :earlier and :later as well as other undo features.

http://vimdoc.sourceforge.net/htmldoc/usr_32.html
http://vimdoc.sourceforge.net/htmldoc/undo.html#undo-branches

Using Vi with Bash and Readline Applications

June 15th, 2009 0 Comments

This weekend I came across a couple posts on Daily Vim about using vi in other applications such as bash, irb, mysql, or any other readline application.

To use vi mode for all readline applications, including bash, put the following line in your ~/.inputrc file.

set editing-mode vi

To use vi mode for bash only, put the following line in your ~/.bash_profile.

set -o vi

With these features enable, you’re dropped into insert mode and from there you can hit Esc or Ctrl-[ to change to command mode.  Enjoy.

New Vim Plugins

September 10th, 2008 0 Comments

Some great Vim plugins I found today:

  • Autoclose: Autocloses your “, ‘, (, [, { characters like Textmate.

    Download here.

  • Surround: Nice shortcuts for working with html and xml like tags, as wells as quotes and others. Found this plugin when looking for a <%= %> macro for my Rails work. It’s <C-s>=. More specifically, go into insert-mode and hit Ctrl-s then ‘=’. Also, hit <C-s>- to start inserting text in a <% -%> block. Works great.

    Download here.