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

Quicksort - 2113 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: 6
  • Position: #104 / 472
  • Number of attempts: 8
Poorly indented Python comments - 1350 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 23
  • Position: #90 / 225
  • Number of attempts: 17
Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 39
  • Position: #413 / 624
  • Number of attempts: 2
Inverting Lines - 1961 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 13
  • Position: #357 / 526
  • Number of attempts: 4
Modernise code - 1439 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 60
  • Position: #293 / 333
  • Number of attempts: 2
Rural Post - 4602 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #477 / 1124
  • Number of attempts: 6
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: 24
  • Position: #3139 / 7513
  • Number of attempts: 6
Swap values - 4705 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #528 / 1293
  • Number of attempts: 4
prepend * to every non-blank line - 6395 entries

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

  • Best score: 10
  • Best player score: 15
  • Position: #1012 / 1562
  • Number of attempts: 3
V to the i - 4883 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #792 / 1914
  • Number of attempts: 2
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: 14
  • Position: #499 / 867
  • Number of attempts: 5
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1976 / 3098
  • Number of attempts: 4
Split line with dots - 2175 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #475 / 639
  • Number of attempts: 1
remove lines containing the word "reader" - 3652 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #495 / 1185
  • Number of attempts: 4
Com(m)a Trouble - 3993 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 16
  • Position: #532 / 910
  • Number of attempts: 6
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #558 / 1901
  • Number of attempts: 9
Search and Replace 0 - 5159 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #718 / 1674
  • Number of attempts: 3
That hyphen - 2646 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #383 / 711
  • Number of attempts: 5
Make HTML List - 1072 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 39
  • Position: #90 / 276
  • Number of attempts: 12
Vice versa - 8019 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #616 / 2157
  • Number of attempts: 12
One to Ten - 2258 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #357 / 688
  • Number of attempts: 12
Array transposition - 2481 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #174 / 461
  • Number of attempts: 13
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2058 / 4224
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10755 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1603 / 3715
  • Number of attempts: 5
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #1016 / 1764
  • Number of attempts: 3
Whitespace, empty lines and tabs - 4044 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 18
  • Position: #204 / 862
  • Number of attempts: 10
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: 35
  • Position: #3668 / 3902
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7681 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 37
  • Position: #612 / 1889
  • Number of attempts: 5
rayx
Github:

entered into 28 challenges

contributed 0 challenges