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

Reorganize Pokémon - 858 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 45
  • Position: #229 / 235
  • Number of attempts: 1
Rearrange array to single level - 1811 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 23
  • Position: #117 / 306
  • Number of attempts: 6
Deleting text - 341 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 46
  • Position: #62 / 109
  • Number of attempts: 1
months to html list items - 1139 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 35
  • Position: #261 / 309
  • Number of attempts: 8
Quicksort - 2109 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 39
  • Position: #415 / 471
  • Number of attempts: 1
EDN reformat - 1218 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 69
  • Position: #159 / 172
  • Number of attempts: 4
Find fix point of cos - 1485 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #226 / 434
  • Number of attempts: 4
Paste a column after a column - 2666 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 18
  • Position: #280 / 577
  • Number of attempts: 4
Many duplicates - 1481 entries

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #344 / 481
  • Number of attempts: 3
delete swap - 1880 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #327 / 575
  • Number of attempts: 1
Wikitext headings to markdown - 1029 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 49
  • Position: #173 / 213
  • Number of attempts: 2
simple replacements - 1873 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 24
  • Position: #232 / 401
  • Number of attempts: 5
Simple, Practical, and Common - 33970 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: 24
  • Position: #3140 / 7503
  • Number of attempts: 8
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #795 / 1291
  • Number of attempts: 3
prepend * to every non-blank line - 6388 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #441 / 1559
  • Number of attempts: 3
V to the i - 4860 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #794 / 1910
  • Number of attempts: 8
Add semicolons - 10943 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2103 / 3093
  • Number of attempts: 6
remove lines containing the word "reader" - 3645 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #498 / 1182
  • Number of attempts: 7
Box it - 7998 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #816 / 1898
  • Number of attempts: 3
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1506 / 4246
  • Number of attempts: 4
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 22
  • Position: #982 / 1277
  • Number of attempts: 7
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #986 / 2153
  • Number of attempts: 8
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #1017 / 1196
  • Number of attempts: 3
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1137 / 4218
  • Number of attempts: 9
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #435 / 1143
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1605 / 3711
  • Number of attempts: 4
Words in parens - 13032 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #22 / 3986
  • Number of attempts: 7
switch variable - 5114 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1456 / 1759
  • Number of attempts: 3
Change the content of a string - 1766 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #219 / 648
  • Number of attempts: 8
Sort and add attributes - 1572 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #305 / 610
  • Number of attempts: 3
Reconstruct the Sentence - 1722 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 19
  • Position: #9 / 453
  • Number of attempts: 11
Andy
Github:

entered into 31 challenges

contributed 0 challenges