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: 31
  • Position: #98 / 157
  • Number of attempts: 1
Swap function parameters and delete all comments in python. - 1073 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 35
  • Position: #220 / 262
  • Number of attempts: 4
Flip All Bits - 503 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: 24
  • Best player score: 84
  • Position: #136 / 144
  • Number of attempts: 1
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: 39
  • Position: #188 / 309
  • Number of attempts: 2
Create json from a .env file - 1773 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 74
  • Position: #298 / 431
  • Number of attempts: 2
Replace csv column if it's not empty - 317 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 22
  • Position: #92 / 103
  • Number of attempts: 1
Column wise pasting - 282 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 49
  • Position: #57 / 63
  • Number of attempts: 1
Plotting some variables in python - 1693 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 62
  • Position: #293 / 355
  • Number of attempts: 2
Convert Application Output to CSV - 233 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 107
  • Position: #61 / 61
  • Number of attempts: 2
JessicaArigbabu
Github:

entered into 9 challenges

contributed 0 challenges