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

Paste a column after a column - 2310 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 19
  • Position: #243 / 500
  • Number of attempts: 4
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 69
  • Position: #185 / 400
  • Number of attempts: 1
Reformat symbols in list - 1477 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #142 / 327
  • Number of attempts: 5
delete swap - 1574 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #210 / 493
  • Number of attempts: 1
Inverting Lines - 1850 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 15
  • Position: #381 / 501
  • Number of attempts: 2
Modernise code - 1343 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 45
  • Position: #182 / 310
  • Number of attempts: 1
Multiline to Single Line - 679 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #219 / 297
  • Number of attempts: 2
Append semicolon after expressions - 1012 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #299 / 406
  • Number of attempts: 2
PHP <--> Java class conversion Part 1 - 212 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 91
  • Position: #27 / 61
  • Number of attempts: 2
formatted text to markdown - 183 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 79
  • Position: #38 / 66
  • Number of attempts: 4
Line Zipper - 450 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #171 / 210
  • Number of attempts: 2
PHP <--> Java class conversion Part 2 - 96 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 131
  • Position: #26 / 38
  • Number of attempts: 2
Case preserving word replacement - 453 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 23
  • Position: #130 / 179
  • Number of attempts: 2
Sort entries based on date - 363 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 30
  • Position: #109 / 114
  • Number of attempts: 2
@AndrewRadev@hachyderm.io
Twitter:

Rails developer, rustacean, Vim pluginist, part-time word inventor. Feed may contain traces of shitposting. For more Vim tweets, see @VimLinks.

entered into 14 challenges

contributed 0 challenges