Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Simple, Practical, and Common - 33724 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #1598 / 7442
  • Number of attempts: 11
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 17
  • Position: #1106 / 1274
  • Number of attempts: 2
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1560 / 3870
  • Number of attempts: 3
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #11 / 1169
  • Number of attempts: 6
From argument to object - 1513 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 20
  • Position: #310 / 460
  • Number of attempts: 3
Copy three lines - 2875 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Position: #429 / 641
  • Number of attempts: 1
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2147 / 4209
  • Number of attempts: 3
Missing Library and a Typo - 893 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 23
  • Position: #184 / 214
  • Number of attempts: 2
create arrows in a list - 117 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #9 / 73
  • Number of attempts: 1
Adam's challenge - 987 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 21
  • Position: #139 / 271
  • Number of attempts: 3
Wrap text in quotes - 368 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 18
  • Position: #75 / 122
  • Number of attempts: 3
Vice versa - 7945 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1233 / 2138
  • Number of attempts: 3
Manual SQL - 160 entries

Change select and insert queries to simulate inserting a new record.

  • Best score: 48
  • Best player score: 58
  • Position: #23 / 50
  • Number of attempts: 2
Python challenge - 172 entries

Change the types of the variables in the list from str to float, while keeping the truncation.

  • Best score: 31
  • Best player score: 73
  • Position: #42 / 46
  • Number of attempts: 2
Daniel K.
Twitter:

works at a university, uses vim when ever possible, likes python and does horseback archery in his spare time

entered into 14 challenges

contributed 0 challenges