Skip to content

Archive

Archive for August 27th, 2009

I had to redo the Working with Many Files (Screencast 1) video because there was some weird audio encoding problem with it that Vimeo just wasn’t happy dealing with. But, at any rate, it appears to work correctly now!

Have a look at Working with Many Files (Screencast 1).

The second video about Working with Multiple Files is now online. Vimeo is still converting Screencast 1, even though I uploaded that one first – it’s been a really lucky day for me today :). Hopefully that one will be done soon. This video covers:

  • The args list, and moving through it.
  • The buffer list, and moving through it.
  • The bufdo command and touches on its super powers.

These are all in support of running Just One Vim.

I saw this on Twitter:

From: @jyurek
Sent: 27 Aug 2009 10:35

Is there a vim command to go to the end of the current search
highlight? Like e for words, but for search matches.
#vim #lazytweet

I found it quite interesting and didn’t have an “out of the box” Vim answer to this. So I crafted the following answer:

:nmap <silent> <c-e> /<c-r>//e<cr>:let @/='<c-r>/'<cr>

And that seems to work. Essentially you hit CTRL-e and that starts another search exactly like your previous search but puts the cursor at the end of it, then puts the original search back in the search register so that ‘n’ and ‘N’ work as expected.

I just found this cool cheat sheet for Vim that some folks may find helpful: The Vim Cheat Sheet.

We’re going to start covering a very important topic in the next series: Working with Many Files (Screencast 1). I plan on covering a full range of complexity on this topic but the first video is going to cover the dead basics:

  • How to list the buffers that are currently known and visible.
  • How to switch between buffers.
  • How to delete buffers.

That’s it :) We are starting with the basics here folks. Trust me, it will get more interesting.

Switch to our mobile site