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

One number per line - 18712 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1787 / 3859
  • Number of attempts: 6
Extended Customer 2 - 49 entries

Format the chars

  • Best score: 47
  • Best player score: 84
  • Position: #17 / 21
  • Number of attempts: 3
Words in parens - 12929 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 19
  • Position: #3132 / 3961
  • Number of attempts: 4
Create a pandoc compatible table - 214 entries

In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

  • Best score: 32
  • Best player score: 47
  • Position: #36 / 56
  • Number of attempts: 6
Shuffle and Sort - 229 entries

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

  • Best score: 17
  • Best player score: 27
  • Position: #44 / 67
  • Number of attempts: 5
Cleanining up 80 column concatenated text - 203 entries

1. Put the whole query on one line, remove the concatenation operators 2. Remove the double spaces that appear a few times in the query 3. Use string-interpolated variable statementPid rather than the ugly concatenation

  • Best score: 31
  • Best player score: 55
  • Position: #73 / 79
  • Number of attempts: 4
Convert pandoc unordered list to a numbered list - 166 entries

I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?

  • Best score: 20
  • Best player score: 46
  • Position: #50 / 57
  • Number of attempts: 6
Vertical Limit - 2538 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #611 / 754
  • Number of attempts: 3
Make the circuit grid! - 101 entries

Copy this command for a circuit layout program to create 10 total smd commands. Increment the number in quotes to name each pad, and add 0.7 to each of the (X Y) coordinates at the end of each line.

  • Best score: 26
  • Best player score: 29
  • Position: #36 / 50
  • Number of attempts: 1
replacing each line of a block selection - 2999 entries

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

  • Best score: 18
  • Best player score: 35
  • Position: #723 / 777
  • Number of attempts: 1
Switch function arguments - 2130 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #343 / 661
  • Number of attempts: 2
Append semicolon after expressions - 1054 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 14
  • Position: #366 / 418
  • Number of attempts: 1
Reverse and double space - 500 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 22
  • Position: #188 / 199
  • Number of attempts: 1
Remove semicolons after expressions - 654 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 8
  • Position: #170 / 263
  • Number of attempts: 2
switch variable - 5071 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Position: #1469 / 1748
  • Number of attempts: 2
The meaning - 575 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 6
  • Position: #333 / 363
  • Number of attempts: 1

Contributed Challenges

Format the output - 146 entries

Sometimes your standard out is a little hard to read. Take this multilevel hash and make it human readable.

J Paul Daigle
Twitter:

Father, husband, code monkey, experimental mathematician and conventional musician.

entered into 16 challenges

contributed 1 challenges