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

Remove line numbers - 617 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 12
  • Best player score: 13
  • Position: #67 / 166
  • Number of attempts: 4
Find fix point of cos - 1169 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #132 / 355
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 497 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #114 / 281
  • Number of attempts: 2
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #162 / 514
  • Number of attempts: 6
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 73
  • Position: #220 / 401
  • Number of attempts: 1
Reformat symbols in list - 1482 entries

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

  • Best score: 24
  • Best player score: 42
  • Position: #269 / 328
  • Number of attempts: 1
delete swap - 1606 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #264 / 502
  • Number of attempts: 8
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #94 / 313
  • Number of attempts: 15
The holy-grail may help - 352 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 25
  • Position: #203 / 207
  • Number of attempts: 1
Victor Phan
Twitter2:

entered into 9 challenges

contributed 0 challenges