Tag Archives: Vim

Happy 20th Birthday, Vim!

Today marks the 20th anniversary of my personal favorite text editor, Vim. Ars Technica has a great article marking the occasion and talking about some Vim history in “Two decades of productivity: Vim’s 20th anniversary” The Vim text editor was … Continue reading

Posted in posts | Tagged , , | Leave a comment

Dotfiles

I’ve got a dotfile repository started and now public, which you can reach either via the menubar at the top of the page, or directly at this URL. At the moment, I’ve got my RSS feed subscriptions, my bashrc, and … Continue reading

Tagged , , , , , | Leave a comment

Learning tmux

I’ve been experimenting with tmux the last couple of weeks, using it as a combination drop-in for screen, and for terminal multiplexing all the CLI programs I am also experimenting with as replacements for their GUI equivalents (more on this … Continue reading

Tagged , , , , , , , , , , | Leave a comment

Your brain on Vim

“This is Your Brain on Vim”, a hilarious blog post by Kevin Watters, tracing some of the evolution your brain goes through incorporating the awesomeness that is the best text editor ever. ;D

I was watching a violinist bow intensely and I had this thought: I probably have as many brain cells devoted to my text editor as he does to playing his chosen instrument. Is it outlandish to imagine that an MRI of his brain during a difficult solo wouldn’t look much different than mine while manipulating abstractions in that blissful near-fugue state where you’ve mastered your editor and you can create towering structures of mostly-working-out-of-the-gate code as fast you can think?

Via reddit

Continue reading
Tagged , | Leave a comment

TwitVim: Twitter in Vim

vim icon

Bwa ha ha:

TwitVim is a Vim plugin that allows you to post to Twitter and view Twitter timelines.

“The geeky-awesome sensors are off the charts, captain!”

New version released last week.

See also:

Via reddit.

Continue reading
Tagged , , | Leave a comment

How to insert or replace text on multiple lines simultaneously in vim

vim icon

Let’s say you have a text file with a list of to-do items, like this:

* Download iX rar file
* Charge iPod
* Install iX on iPod
* Return Ender's Game to library
* Track down The Snake's Pass by Bram Stoker
* Write post on vim editing trick

In order to better organize and sort the list as you view it, you want to add a [PROJECT] “tag” to each line:

* [PROJECT] Action

Now, to edit your original list, you could go down each line and edit manually. You could even use the . (period) trick and make the same change to each line as desired. But to really speed things up, try this.

  1. Put your cursor where you want to add the text; in our case, we’ll start at the “D” in Download on the first line. Since the first three items in our list belong to the same “IPOD LINUX” project, we’ll take care of ‘em all at once.
  2. Type CTRL-v
  3. Move your cursor down two lines (jj) to indicate where the changes will be made.
  4. Type I (capital letter I)
  5. Make your changes; it will only show up on the first line while you’re editing.
  6. When you’re done with the changes, hit ESC — your edit will be propagated down three lines.
  7. Repeat as necessary.

This leaves us with:

* [IPOD LINUX] Download iX rar file
* [IPOD LINUX] Charge iPod
* [IPOD LINUX] Install iX on iPod
* [READING] Return Ender's Game to library
* [READING] Track down The Snake's Pass by Bram Stoker
* [BLOG] Write post on vim editing trick

For more, see:

Continue reading
Tagged , | Leave a comment

surround.vim

Via yesterday’s Vimcasts episode, “Converting markdown to structured HTML with a macro”, check out this most-excellent Vim plugin:

Surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease

Surround.vim is all about “surroundings”: parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs. While it works under Vim 6, much of the functionality requires Vim 7.

Anybody editing HTML or other markup can definitely use this.

Continue reading
Tagged , , , | Leave a comment