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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 7
  • Position: #162 / 253
  • Number of attempts: 1
Flip All Bits - 485 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: 56
  • Position: #113 / 137
  • Number of attempts: 1
From brakets to parens - 1331 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: #242 / 303
  • Number of attempts: 1
Create json from a .env file - 1740 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 58
  • Position: #183 / 423
  • Number of attempts: 2
Reordering properties - 1385 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: #242 / 302
  • Number of attempts: 1
Changing date formats - 755 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 122
  • Position: #167 / 212
  • Number of attempts: 2
YAML to dotenv - 1639 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 29
  • Position: #227 / 343
  • Number of attempts: 2
Swap columns and transform to CSV format - 504 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #97 / 180
  • Number of attempts: 3
Generate an entry for each month - 397 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 / 101
  • Number of attempts: 4
The Fibonacci Spacer - 175 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: #39 / 54
  • Number of attempts: 1
Replace markdown sections with numbering - 347 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 71
  • Position: #52 / 92
  • Number of attempts: 2
Fix the Scala Method - 379 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: #61 / 126
  • Number of attempts: 3
Change class fields from camel case to snake case - 676 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #81 / 158
  • Number of attempts: 6
Replace csv column if it's not empty - 312 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: #75 / 101
  • Number of attempts: 7
Markdown Blog Editing - 487 entries

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

  • Best score: 30
  • Best player score: 63
  • Position: #91 / 118
  • Number of attempts: 1
Word completion - 326 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 109
  • Position: #64 / 85
  • Number of attempts: 2
Remove adjacent duplicates - 729 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 23
  • Position: #87 / 184
  • 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 - 540 entries

Reproduce this lovely poem.

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

entered into 22 challenges

contributed 0 challenges