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

C# function to F# - 30 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert a C# function using a C# class to a F# function using a C# class.

  • Best score: 101
  • Best player score: 128
  • Position: #10 / 11
  • Number of attempts: 2
C# data class to F# record - 79 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert from a C# data class to a F# record.

  • Best score: 63
  • Best player score: 119
  • Position: #18 / 18
  • Number of attempts: 1
Get mail address from outlook format - 647 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #95 / 203
  • Number of attempts: 3
Reconstruct the actual output from my unit test tool report - 152 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
  • Position: #31 / 52
  • Number of attempts: 1
prepend * to every non-blank line - 6308 entries

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

  • Best score: 10
  • Best player score: 20
  • Position: #1258 / 1537
  • Number of attempts: 2
One number per line - 18722 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2522 / 3860
  • Number of attempts: 2
Quote modules - 1084 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 27
  • Position: #168 / 281
  • Number of attempts: 1
Swap values inside brackets - 2493 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Position: #310 / 578
  • Number of attempts: 4
Add semicolons - 10850 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #911 / 3062
  • Number of attempts: 6
remove lines containing the word "reader" - 3583 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #768 / 1161
  • Number of attempts: 1
Com(m)a Trouble - 3815 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #501 / 864
  • Number of attempts: 2
Box it - 7904 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 35
  • Position: #1618 / 1875
  • Number of attempts: 1
Search and Replace 0 - 4978 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #645 / 1621
  • Number of attempts: 5
Just the middle - 11446 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3624 / 4194
  • Number of attempts: 2
Team names - 1836 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #257 / 588
  • Number of attempts: 2
JSON string rotation - 64 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
  • Position: #16 / 22
  • Number of attempts: 2
One to Ten - 2209 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
  • Position: #662 / 669
  • Number of attempts: 1
Increment each number - 1023 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 20
  • Position: #143 / 248
  • Number of attempts: 3
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #88 / 151
  • Number of attempts: 1
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1029 / 1137
  • Number of attempts: 1
A simple change - 461 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #149 / 191
  • Number of attempts: 1
Alphabet soup - 429 entries

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

  • Best score: 25
  • Best player score: 42
  • Position: #90 / 108
  • Number of attempts: 1
switch variable - 5071 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #604 / 1748
  • Number of attempts: 4
Reverse Simple Deletion - 847 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #352 / 458
  • Number of attempts: 1
Simple text editing with Vim - 12765 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1845 / 3684
  • Number of attempts: 4

Contributed Challenges

C# data class to F# record - 79 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert from a C# data class to a F# record.

C# function to F# - 30 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert a C# function using a C# class to a F# function using a C# class.

Robin Abrahamsson
Twitter:

Writing code, will start to write about it soon https://t.co/mcme0mItZU. Right now mostly F#. Drinking game made with Elixir and Elm https://t.co/7YZgT2aJNm

entered into 25 challenges

contributed 2 challenges