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 - 1668 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #173 / 365
  • Number of attempts: 4
HS exam question - 1275 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 69
  • Position: #160 / 347
  • Number of attempts: 1
Reformat symbols in list - 1210 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #119 / 274
  • Number of attempts: 5
delete swap - 1267 entries

delete all swap

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

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

  • Best score: 10
  • Best player score: 15
  • Position: #332 / 442
  • Number of attempts: 2
Modernise code - 1208 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 45
  • Position: #168 / 283
  • Number of attempts: 1
Multiline to Single Line - 590 entries

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

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

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #296 / 397
  • Number of attempts: 2
PHP <--> Java class conversion Part 1 - 211 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 - 181 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 - 449 entries

Zip/pair related lines.

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

Same class but reverse!

  • Best score: 80
  • Best player score: 131
  • Position: #26 / 37
  • Number of attempts: 2
Case preserving word replacement - 444 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: #129 / 178
  • Number of attempts: 2
Sort entries based on date - 359 entries

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

  • Best score: 11
  • Best player score: 30
  • Position: #108 / 113
  • 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