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

Filling braces - 481 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 21
  • Best player score: 38
  • Position: #146 / 157
  • Number of attempts: 1
Swap function parameters and delete all comments in python. - 1078 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 25
  • Position: #121 / 263
  • Number of attempts: 2
Delete the last function argument in python. - 730 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #85 / 262
  • Number of attempts: 4
From brakets to parens - 1356 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: 114
  • Position: #305 / 309
  • Number of attempts: 1
π - 344 entries

1200 π chars

  • Best score: 16
  • Best player score: 1225
  • Position: #82 / 84
  • Number of attempts: 1
Changing date formats - 774 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 131
  • Position: #179 / 213
  • Number of attempts: 2
Change readonly files - 141 entries

Try to write a file that was marked as read-only.

  • Best score: 16
  • Best player score: 17
  • Position: #2 / 39
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 309 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 51
  • Position: #106 / 123
  • Number of attempts: 1
Append leading hyphen count to each line - 157 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 50
  • Position: #39 / 43
  • Number of attempts: 2
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 28
  • Position: #3623 / 3907
  • Number of attempts: 2
Sudoku table - 124 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 97
  • Position: #38 / 38
  • Number of attempts: 1
Priyanshu Katuwal
Github:

entered into 11 challenges

contributed 0 challenges