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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 25
  • Position: #105 / 229
  • Number of attempts: 7
Delete the last function argument in python. - 634 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 7
  • Position: #146 / 228
  • Number of attempts: 1
Flip All Bits - 399 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: 56
  • Position: #101 / 121
  • Number of attempts: 1
From brakets to parens - 1290 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: 46
  • Position: #232 / 290
  • Number of attempts: 1
Create json from a .env file - 1687 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 58
  • Position: #178 / 412
  • Number of attempts: 2
Reordering properties - 1372 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: 108
  • Position: #239 / 298
  • Number of attempts: 1
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 122
  • Position: #166 / 211
  • Number of attempts: 2
YAML to dotenv - 1633 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 29
  • Position: #225 / 341
  • Number of attempts: 2
Swap columns and transform to CSV format - 491 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #94 / 176
  • Number of attempts: 3
Generate an entry for each month - 395 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 66
  • Position: #73 / 100
  • Number of attempts: 4
The Fibonacci Spacer - 172 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 14
  • Best player score: 72
  • Position: #38 / 52
  • Number of attempts: 1
Replace markdown sections with numbering - 323 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 71
  • Position: #51 / 90
  • Number of attempts: 2
Fix the Scala Method - 375 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 23
  • Position: #60 / 124
  • Number of attempts: 3
Change class fields from camel case to snake case - 669 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #81 / 154
  • Number of attempts: 6
Replace csv column if it's not empty - 310 entries

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

  • Best score: 15
  • Best player score: 17
  • Position: #74 / 100
  • Number of attempts: 7
Markdown Blog Editing - 485 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 63
  • Position: #90 / 117
  • Number of attempts: 1
Word completion - 310 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 109
  • Position: #63 / 84
  • Number of attempts: 2
Remove adjacent duplicates - 727 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 23
  • Position: #87 / 182
  • Number of attempts: 7
Quote modules - 1104 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 51
  • Position: #282 / 291
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 773 entries

Clean and group.

  • Best score: 17
  • Best player score: 24
  • Position: #145 / 182
  • Number of attempts: 2
Alsa configuration - 551 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 33
  • Position: #100 / 132
  • Number of attempts: 3
Minimalist Limerick - 539 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 53
  • Position: #168 / 177
  • Number of attempts: 1
B Madhusudan
Github:

entered into 22 challenges

contributed 0 challenges