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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #53 / 264
  • Number of attempts: 8
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: 50
  • Position: #256 / 309
  • Number of attempts: 6
Create json from a .env file - 1773 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 42
  • Position: #78 / 431
  • Number of attempts: 5
Change to ascending order - 566 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 18
  • Position: #26 / 138
  • Number of attempts: 7
Swap columns and transform to CSV format - 516 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #83 / 184
  • Number of attempts: 3
Replace markdown sections with numbering - 348 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 38
  • Position: #23 / 93
  • Number of attempts: 9
Change class fields from snake case to camel case - 336 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #76 / 127
  • Number of attempts: 4
extract struct tag in go - 174 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 55
  • Position: #37 / 51
  • Number of attempts: 3
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: 42
  • Position: #35 / 123
  • Number of attempts: 4
Remove adjacent duplicates - 732 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 25
  • Position: #99 / 187
  • Number of attempts: 1
Rearrange array to one line - 907 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 20
  • Position: #116 / 209
  • Number of attempts: 1
Column wise pasting - 282 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 30
  • Position: #36 / 63
  • Number of attempts: 2
Deleting text - 360 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 40
  • Position: #16 / 117
  • Number of attempts: 1
Space out the alphabet - 1700 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 20
  • Position: #279 / 460
  • Number of attempts: 3
C to VimDict - 67 entries

Convert a C data structure to a Vimscript dictionary.

  • Best score: 39
  • Best player score: 55
  • Position: #19 / 19
  • Number of attempts: 2
imports alignment (python) - 729 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Position: #98 / 205
  • Number of attempts: 3
The holy-grail may help - 408 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #172 / 222
  • Number of attempts: 3
Joe Liotta
Github:

entered into 17 challenges

contributed 0 challenges