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

Change to ascending order - 541 entries

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

  • Best score: 17
  • Best player score: 70
  • Position: #95 / 132
  • Number of attempts: 1
Swap columns and transform to CSV format - 487 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #15 / 175
  • Number of attempts: 4
Generate an entry for each month - 387 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: 51
  • Position: #58 / 97
  • Number of attempts: 5
Fix the git merge conflicts - 348 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 68
  • Position: #79 / 104
  • Number of attempts: 1
Replace markdown sections with numbering - 321 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 90
  • Position: #62 / 89
  • Number of attempts: 1
Fix the Scala Method - 373 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: 22
  • Position: #15 / 122
  • Number of attempts: 5
Change class fields from camel case to snake case - 664 entries

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

  • Best score: 18
  • Best player score: 31
  • Position: #108 / 153
  • Number of attempts: 1
Change class fields from snake case to camel case - 322 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #111 / 121
  • Number of attempts: 2
Reorganize Pokémon - 875 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #97 / 240
  • 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: #69 / 100
  • Number of attempts: 3
Change readonly files - 128 entries

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

  • Best score: 20
  • Best player score: 55
  • Position: #28 / 36
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 297 entries

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

  • Best score: 41
  • Best player score: 47
  • Position: #73 / 118
  • Number of attempts: 2
Append leading hyphen count to each line - 148 entries

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

  • Best score: 23
  • Best player score: 52
  • Position: #38 / 41
  • Number of attempts: 1
Plotting some variables in python - 1691 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: 51
  • Position: #219 / 354
  • Number of attempts: 4
Making 3 line function a one liner. - 347 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #41 / 214
  • Number of attempts: 2
Modernise code - 1439 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 68
  • Position: #305 / 333
  • Number of attempts: 2
Simple, Practical, and Common - 34012 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 27
  • Position: #3993 / 7513
  • Number of attempts: 4
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3240 / 3904
  • Number of attempts: 3
Swap values inside brackets - 2551 entries

Easy challenge.

  • Best score: 13
  • Best player score: 24
  • Position: #498 / 594
  • Number of attempts: 3
Applying same text modification in several lines - 2931 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 25
  • Position: #783 / 867
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 868 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #240 / 451
  • Number of attempts: 1
Search and Replace 0 - 5159 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 16
  • Position: #1263 / 1674
  • Number of attempts: 2
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3606 / 4255
  • Number of attempts: 4
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 21
  • Position: #3780 / 4224
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10755 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2370 / 3715
  • Number of attempts: 3
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2997 / 3991
  • Number of attempts: 2
Sort the cardinal numbers - 328 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 12
  • Position: #44 / 151
  • Number of attempts: 3
Case preserving word replacement - 477 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 39
  • Position: #183 / 186
  • Number of attempts: 1
A Simple One - 1088 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #479 / 679
  • Number of attempts: 1
Reverse Simple Deletion - 871 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 15
  • Position: #431 / 465
  • Number of attempts: 3
Increment, increment, increment.... - 706 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #356 / 416
  • Number of attempts: 2
Context Insensitive completion 1 - 532 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 39
  • Position: #240 / 252
  • Number of attempts: 1
Simple text editing with Vim - 13626 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 22
  • Position: #3117 / 3902
  • Number of attempts: 2
editor3D
Twitter:

online editor HTML/CSS/JS editor3d

entered into 33 challenges

contributed 0 challenges