Developer Scratch Pad
Vim, assessment and going to, middle, and bottom of the screen

Okay, so we should start with a self-assessment. I am currently using most of the letter characters together with $ and ^. I am surprised that I can actually use most of the uppercase letter character commands since I haven’t made a point of learning how to use them.

The one group that I didn’t use were H L and M.

H will take you to the top of the screen. L will tkae you to the bottom of the screen. M will take you to the middle.

Pretty handy.

Deep practicing Vim

I have been using vim for a while, and I actually use many of the keys, yet I am not doing as well as I would like. So once in a while I will post some notes on how I am trying to improve my use of vim.

This time the issue has to do with W B E.

I was confused because they pretty much look and act the same as w e b, except when they don’t. By experience I knew that the uppercase ones seem to take bigger jumps. But I decided to actually outright (re)learn what they do.

So it seems that the uppercase W E B separate words by space. Their lowercase versions separate words by punctuation.

How to set up vim to run rake

To use the :make command in vim, you must first set it up using the :makeprg command. To set up rake as the make program, you write

:set makeprg=rake

After this just use rake. Make sure to have vim running in the right directory.

References:

source for solution with rake

http://blog.highorderbit.com/2009/09/02/building-xcode-projects-in-vim-with-rake/

documentation on makeprg

http://vimdoc.sourceforge.net/htmldoc/options.html#%27makeprg%27

Should learn about adding code snippets in vim

that would be useful.

I feel that there is a tutorial waiting to be written about registers. It is not that the documentation is not well written. It is that sometimes we need to be expose to the same material in different ways.