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

Python: Def to Lambda - 455 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #15 / 156
  • Number of attempts: 1
Rural Post - 4532 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #263 / 1107
  • Number of attempts: 10
Satisfy the go linter - 2437 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 20
  • Position: #33 / 481
  • Number of attempts: 10
Add quotes to ansible playbook - 1007 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Position: #15 / 316
  • Number of attempts: 5
Multiline to Single Line - 731 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #68 / 310
  • Number of attempts: 3
Yo To Hello - 1142 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #194 / 529
  • Number of attempts: 3
Simple, Practical, and Common - 33724 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: 22
  • Position: #2216 / 7442
  • Number of attempts: 7
prepend * to every non-blank line - 6337 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #622 / 1546
  • Number of attempts: 5
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1322 / 3870
  • Number of attempts: 7
V to the i - 4813 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1461 / 1897
  • Number of attempts: 2
Applying same text modification in several lines - 2897 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #472 / 857
  • Number of attempts: 2
Add string initializers to an enum - 873 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 25
  • Position: #156 / 259
  • Number of attempts: 1
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1537 / 3072
  • Number of attempts: 3
Bad Copy Syntax - 2044 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 20
  • Position: #267 / 530
  • Number of attempts: 2
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #429 / 1169
  • Number of attempts: 2
Com(m)a Trouble - 3875 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #319 / 876
  • Number of attempts: 6
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #365 / 1881
  • Number of attempts: 11
Every other line - 2915 entries

AaAaAaA

  • Best score: 12
  • Best player score: 27
  • Position: #689 / 704
  • Number of attempts: 1
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3091 / 4209
  • Number of attempts: 3
Team names - 1841 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #260 / 589
  • Number of attempts: 4
Remember VimGolf Rules ! - 264 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #116 / 142
  • Number of attempts: 2
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #228 / 1269
  • Number of attempts: 4
Vice versa - 7945 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1914 / 2138
  • Number of attempts: 2
comments galore - 1048 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #285 / 425
  • Number of attempts: 4
Align commas - 1095 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 17
  • Position: #175 / 246
  • Number of attempts: 2
Line under headers - 2059 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 32
  • Position: #331 / 507
  • Number of attempts: 3
Increment each number - 1025 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 16
  • Position: #79 / 249
  • Number of attempts: 5
change parenthesis - 296 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #138 / 161
  • Number of attempts: 1
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #489 / 1191
  • Number of attempts: 6
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1387 / 4189
  • Number of attempts: 4
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #730 / 1138
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2468 / 3689
  • Number of attempts: 2
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1835 / 3969
  • Number of attempts: 5
SFD-ROC: vimvimvim - 1606 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #112 / 446
  • Number of attempts: 7
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1252 / 1749
  • Number of attempts: 1
Make it more readable - 2009 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #313 / 652
  • Number of attempts: 3
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #52 / 654
  • Number of attempts: 1
Shebangs for all - 2018 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 15
  • Position: #286 / 519
  • Number of attempts: 3
Vinay Sharma
Twitter:

entered into 38 challenges

contributed 0 challenges