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

Add semicolons - 7656 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 6
Reconstruct the actual output from my unit test tool report - 78 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 1
One to Ten - 1702 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 33
  • Number of attempts: 1
Alphabet soup - 128 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 42
  • Number of attempts: 1
-a-b-c- - 2854 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
switch variable - 4613 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Join 'em - 191 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Number of attempts: 1
Increment each number - 705 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 20
  • Number of attempts: 3
Search and Replace 0 - 4434 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 5
A simple change - 369 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 1
Reverse Simple Deletion - 732 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Quote modules - 615 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 1
Team names - 1625 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 2
Com(m)a Trouble - 2699 entries

Someone was real stupid when placing his commas. Can you fix it?

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 2
prepend * to every non-blank line - 2497 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 2
Swap values inside brackets - 2104 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 4
Get mail address from outlook format - 324 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 3
Simple text editing with Vim - 10989 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 4
JSON string rotation - 51 entries

Right value strings are misplaced. Just rotate them! I'm too kind with you guys and didn't included "strings with \" in it"!

  • Best score: 19
  • Best player score: 35
  • Number of attempts: 2
remove lines containing the word "reader" - 2793 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Box it - 6004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 35
  • Number of attempts: 1
Robin Abrahamsson
Twitter:

entered into 22 challenges

contributed 0 challenges