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

Swap function parameters and delete all comments in python. - 335 entries

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #24 / 111
  • Number of attempts: 3
Flip All Bits - 202 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: #22 / 69
  • Number of attempts: 5
From brakets to parens - 1181 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 / 258
  • Number of attempts: 9
Reordering properties - 1266 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: #107 / 286
  • Number of attempts: 5
Replace word while reserving first letter case - 664 entries

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

  • Best score: 24
  • Best player score: 31
  • Position: #52 / 126
  • Number of attempts: 5
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #171 / 307
  • Number of attempts: 5
Tic-Tac-Toe Grid Transformation - 449 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 / 87
  • Number of attempts: 2
Populate 3D bone names list - 652 entries

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

  • Best score: 21
  • Best player score: 39
  • Position: #147 / 168
  • Number of attempts: 3
Find fix point of cos - 1483 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 / 433
  • Number of attempts: 2
Baptiste Nicolet
Github:

entered into 10 challenges

contributed 0 challenges