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

Prime Numbers - 261 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 374
  • Number of attempts: 2
Manual SQL - 92 entries

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

  • Best score: 49
  • Best player score: 52
  • Number of attempts: 2
abcd > a b c d - 232 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 1
Vice versa - 5076 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Simple text editing with Vim - 9723 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
I forgot quotes - 9642 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
Inner hyphens - 110 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 8842 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
Just the middle - 8223 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Append semicolon after expressions - 820 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Mirrored text - 149 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 3
Don't know what this is - 1542 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
Basic renumbering - 3930 entries

Renumbering Basic.

  • Best score: 2
  • Best player score: 11
  • Number of attempts: 7
Scrambled numbers - 672 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Number of attempts: 2
Words in parens - 10118 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 1
Condensed Cases - 652 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 2
One number per line - 9664 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 5
Simple, Practical, and Common - 19708 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: 13
  • Best player score: 25
  • Number of attempts: 7
Fix the XML - 803 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 7
Shuffle and Sort - 159 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 6
replacing each line of a block selection - 2304 entries

replace each line's ../assets/js with /javascripts

  • Best score: 17
  • Best player score: 20
  • Number of attempts: 5
SQL to YAML - 32 entries

Should be easy with vim, or not?

  • Best score: 72
  • Best player score: 89
  • Number of attempts: 1
Vertical Limit - 1950 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 7
attr_aligner - 2710 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 30
  • Number of attempts: 3
Calculate the table totals - 105 entries

Go ahead... commit the treachery of using vim as a spreadsheet.

  • Best score: 33
  • Best player score: 47
  • Number of attempts: 3

Contributed Challenges

Swap values - 2957 entries

Well, swap the values...

SQL to YAML - 32 entries

Should be easy with vim, or not?

Mister Knister
Twitter:

entered into 25 challenges

contributed 2 challenges