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

hexagram binary tree - 42 entries

generate the binary tree that represents all possible hexagrams found in the book of changes (易经)

  • Best score: 24
  • Best player score: 52
  • Position: #9 / 14
  • Number of attempts: 2
Swap function parameters and delete all comments in python. - 796 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 24
  • Position: #77 / 206
  • Number of attempts: 2
Delete the last function argument in python. - 550 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #24 / 201
  • Number of attempts: 3
Flip All Bits - 355 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 38
  • Position: #42 / 110
  • Number of attempts: 5
From brakets to parens - 1266 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 25
  • Position: #60 / 284
  • Number of attempts: 9
Reordering properties - 1336 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 63
  • Position: #113 / 294
  • Number of attempts: 5
Replace word while reserving first letter case - 665 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 31
  • Position: #53 / 127
  • Number of attempts: 5
months to html list items - 1146 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #174 / 310
  • Number of attempts: 5
Tic-Tac-Toe Grid Transformation - 450 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 152
  • Position: #62 / 88
  • Number of attempts: 2
Populate 3D bone names list - 656 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 39
  • Position: #148 / 169
  • Number of attempts: 3
Find fix point of cos - 1485 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: #212 / 434
  • Number of attempts: 2
Baptiste Nicolet
Github:

entered into 11 challenges

contributed 0 challenges