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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 580 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 19
  • Position: #283 / 326
  • Number of attempts: 1
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: 16
  • Position: #166 / 577
  • Number of attempts: 7
Filter number combinations that don't add to 11 - 424 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 29
  • Position: #86 / 122
  • Number of attempts: 2
HS exam question - 1611 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 65
  • Position: #162 / 421
  • Number of attempts: 2
Substraction (bis) - 637 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 36
  • Position: #85 / 116
  • Number of attempts: 4
Python: Def to Lambda - 476 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #96 / 159
  • Number of attempts: 1
Rural Post - 4595 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #248 / 1121
  • Number of attempts: 5
Yo To Hello - 1154 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #189 / 535
  • Number of attempts: 2
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: 18
  • Position: #1176 / 1559
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #760 / 3898
  • Number of attempts: 8
Add semicolons - 10943 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1166 / 3093
  • Number of attempts: 2
Bad Copy Syntax - 2079 entries

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

  • Best score: 18
  • Best player score: 34
  • Position: #481 / 541
  • Number of attempts: 1
remove lines containing the word "reader" - 3645 entries

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #940 / 1898
  • Number of attempts: 3
Search and Replace 0 - 5115 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #715 / 1667
  • Number of attempts: 4
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1369 / 4246
  • Number of attempts: 2
One to Ten - 2248 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: #290 / 686
  • Number of attempts: 3
Swap assigned value - 681 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #106 / 262
  • Number of attempts: 6
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2731 / 4218
  • Number of attempts: 1
Subtraction - 201 entries

Solve the equations.

  • Best score: 18
  • Best player score: 61
  • Position: #62 / 63
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2461 / 3711
  • Number of attempts: 4
Word frequency alignment - 302 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 6
  • Position: #154 / 164
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 445 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 8
  • Position: #6 / 198
  • Number of attempts: 3
SFD-ROC: ROT13 Phonics - 111 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #60 / 76
  • Number of attempts: 5
Let's play some Ivmgolf - 1151 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #341 / 456
  • Number of attempts: 4
replacing each line of a block selection - 3041 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 19
  • Position: #230 / 786
  • Number of attempts: 6
Append semicolon after expressions - 1068 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #137 / 424
  • Number of attempts: 5
Reverse and double space - 506 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 15
  • Position: #87 / 201
  • Number of attempts: 4
Remove semicolons after expressions - 671 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 7
  • Position: #149 / 266
  • Number of attempts: 1
The meaning - 580 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #313 / 365
  • Number of attempts: 2
A Simple One - 1077 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #562 / 676
  • Number of attempts: 2
Reverse Simple Deletion - 865 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #374 / 464
  • Number of attempts: 2
Increment, increment, increment.... - 703 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #60 / 414
  • Number of attempts: 5
Context insensitive completion 0 - 596 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 8
  • Position: #156 / 252
  • Number of attempts: 3
Sort and add attributes - 1572 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #403 / 610
  • Number of attempts: 2
Dionysus
Twitter:

Memento mori. There are levels of survival we are prepared to accept

entered into 35 challenges

contributed 0 challenges