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

Fix the shell script! - 2651 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 51
  • Position: #512 / 616
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1668 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #302 / 561
  • Number of attempts: 1
Wikitext headings to markdown - 1014 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 29
  • Position: #131 / 211
  • Number of attempts: 1
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #484 / 717
  • Number of attempts: 1
Contribute to keyboard mashing - 900 entries

Speak in tongues

  • Best score: 17
  • Best player score: 22
  • Position: #238 / 273
  • Number of attempts: 1
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #204 / 396
  • Number of attempts: 1
Inverting Lines - 1932 entries

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

  • Best score: 10
  • Best player score: 20
  • Position: #473 / 518
  • Number of attempts: 1
Making 3 line function a one liner. - 340 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #85 / 209
  • Number of attempts: 2
Modernise code - 1420 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 44
  • Position: #168 / 328
  • Number of attempts: 2
Enumerate Bullets - 330 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 18
  • Best player score: 67
  • Position: #80 / 90
  • Number of attempts: 1
Python: Def to Lambda - 460 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 21
  • Position: #115 / 157
  • Number of attempts: 1
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 14
  • Position: #725 / 1116
  • Number of attempts: 5
Multiline to Single Line - 747 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #100 / 318
  • Number of attempts: 1
Yo To Hello - 1152 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #291 / 534
  • Number of attempts: 2
Simple, Practical, and Common - 33866 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: 28
  • Position: #4542 / 7474
  • Number of attempts: 1
prepend * to every non-blank line - 6366 entries

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

  • Best score: 10
  • Best player score: 18
  • Position: #1196 / 1555
  • Number of attempts: 1
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2015 / 3889
  • Number of attempts: 3
V to the i - 4830 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1481 / 1903
  • Number of attempts: 1
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 14
  • Position: #2177 / 3085
  • Number of attempts: 1
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 15
  • Position: #1102 / 1177
  • Number of attempts: 1
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Position: #1116 / 1891
  • Number of attempts: 2
multiple cursor alternative - 1547 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 30
  • Position: #348 / 385
  • Number of attempts: 1
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #485 / 704
  • Number of attempts: 2
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3900 / 4230
  • Number of attempts: 1
Team names - 1848 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 20
  • Position: #501 / 592
  • Number of attempts: 1
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1691 / 2146
  • Number of attempts: 1
Collect List - 4317 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1094 / 1194
  • Number of attempts: 1
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2031 / 4202
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2500 / 3700
  • Number of attempts: 1
Gunter Kluge
Twitter:

entered into 29 challenges

contributed 0 challenges