Home
millie O&M David C. Simpson

A vim tip that I learned from my supervisor at work today is this: you can search for the next occurence of the word under the cursor using "*". There's also "#" which searches backwards, and there are other search commands which seem useful on the same page.

If you want to jump to a tag you generated using ctags you can use the "Ctrl+]" or the ":tag" commands (":tag" can be abbreviated to ":ta").

And I'll leave you with the following vim macro which I wrote. See if you can guess what it does. I inserted some linebreaks but there are none in the original version.

map <F2> i<CR><CR><div class="entry" title="<CR>
<ESC>!$date +\%Y-\%m-\%d<CR>k$Jx$a: <ESC>mda"><CR><CR><CR>
</div><CR><ESC>`da

Latest Month

August 2008
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Tags