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

Filling braces - 481 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 21
  • Best player score: 24
  • Position: #24 / 157
  • Number of attempts: 10
Create json from a .env file - 1773 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 39
  • Position: #42 / 431
  • Number of attempts: 13
Wrap the text of an email message to 79 characters - 885 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 15
  • Position: #440 / 458
  • Number of attempts: 10
Reformat most common surnames - 848 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 24
  • Position: #45 / 242
  • Number of attempts: 8
Remember FizzBuzz? - 837 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 41
  • Position: #23 / 214
  • Number of attempts: 7
Change the content of a string - 1810 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #272 / 659
  • Number of attempts: 3
Sort and add attributes - 1605 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #325 / 622
  • Number of attempts: 2
Add fold markers to a .c file - 748 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 27
  • Best player score: 34
  • Position: #105 / 205
  • Number of attempts: 8
Reconstruct the Sentence - 1763 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 20
  • Position: #175 / 461
  • Number of attempts: 4
Braces or Brackets? - 1219 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 34
  • Position: #51 / 367
  • Number of attempts: 9
Whitespace, empty lines and tabs - 4083 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 7
  • Best player score: 16
  • Position: #61 / 872
  • Number of attempts: 10
Flodder-challenge - 1527 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 27
  • Position: #45 / 384
  • Number of attempts: 9
Simple text editing with Vim - 13682 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #784 / 3920
  • Number of attempts: 9
Reformat/Refactor a Golfer Class - 7737 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 28
  • Position: #13 / 1901
  • Number of attempts: 11
JackXia233
Github:

entered into 14 challenges

contributed 0 challenges