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

Deleting text - 204 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 46
  • Position: #36 / 64
  • Number of attempts: 1
months to html list items - 929 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 35
  • Position: #207 / 245
  • Number of attempts: 8
Quicksort - 1844 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: #353 / 404
  • Number of attempts: 1
EDN reformat - 1105 entries

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

  • Best score: 17
  • Best player score: 69
  • Position: #144 / 155
  • Number of attempts: 4
Find fix point of cos - 1304 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: #217 / 382
  • Number of attempts: 4
Paste a column after a column - 2481 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #256 / 537
  • Number of attempts: 4
Many duplicates - 1422 entries

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #329 / 460
  • Number of attempts: 3
delete swap - 1754 entries

delete all swap

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

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 49
  • Position: #169 / 208
  • Number of attempts: 2
simple replacements - 1749 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 24
  • Position: #223 / 379
  • Number of attempts: 5
Simple, Practical, and Common - 33535 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: #3109 / 7397
  • Number of attempts: 8
Swap values - 4606 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #786 / 1265
  • Number of attempts: 3
prepend * to every non-blank line - 6288 entries

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

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

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2077 / 3058
  • Number of attempts: 6
remove lines containing the word "reader" - 3573 entries

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #811 / 1872
  • Number of attempts: 3
Just the middle - 11417 entries

Delete the instructions at the top and bottom.

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

Renumbering Basic.

  • Best score: 11
  • Best player score: 22
  • Position: #968 / 1261
  • Number of attempts: 7
Vice versa - 7891 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #976 / 2121
  • Number of attempts: 8
Collect List - 4298 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #1012 / 1190
  • Number of attempts: 3
I forgot quotes - 15954 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2382 / 4170
  • Number of attempts: 5
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #434 / 1137
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1867 / 3957
  • Number of attempts: 4
switch variable - 5061 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1443 / 1743
  • Number of attempts: 3
Change the content of a string - 1541 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #219 / 577
  • Number of attempts: 8
Andy
Github:

entered into 27 challenges

contributed 0 challenges