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. - 629 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 33
  • Position: #124 / 170
  • Number of attempts: 4
Delete the last function argument in python. - 478 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #89 / 174
  • Number of attempts: 4
Flip All Bits - 299 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: 32
  • Position: #21 / 97
  • Number of attempts: 9
From brakets to parens - 1249 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: 44
  • Position: #212 / 277
  • Number of attempts: 4
Create json from a .env file - 1637 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 71
  • Position: #265 / 401
  • Number of attempts: 1
YAML to dotenv - 1581 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 36
  • Position: #265 / 330
  • Number of attempts: 1
Change class fields from camel case to snake case - 651 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 27
  • Position: #101 / 149
  • Number of attempts: 5
Reorganize Pokémon - 858 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 26
  • Position: #187 / 235
  • Number of attempts: 3
Convert plain text into a markdown table - 102 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 301
  • Position: #30 / 33
  • Number of attempts: 1
Roméo Maignal
Github:

entered into 9 challenges

contributed 0 challenges