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. - 538 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #259 / 300
  • Number of attempts: 1
Paste a column after a column - 2504 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #155 / 547
  • Number of attempts: 7
Filter number combinations that don't add to 11 - 401 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: #81 / 114
  • Number of attempts: 2
HS exam question - 1575 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 65
  • Position: #158 / 415
  • Number of attempts: 2
Substraction (bis) - 584 entries

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

  • Best score: 21
  • Best player score: 36
  • Position: #81 / 111
  • Number of attempts: 4
Python: Def to Lambda - 453 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #94 / 155
  • Number of attempts: 1
Rural Post - 4460 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #239 / 1092
  • Number of attempts: 5
Yo To Hello - 1129 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #188 / 523
  • Number of attempts: 2
prepend * to every non-blank line - 6297 entries

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

  • Best score: 10
  • Best player score: 18
  • Position: #1158 / 1534
  • Number of attempts: 2
One number per line - 18709 entries

Just give me the numbers.

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1153 / 3060
  • Number of attempts: 2
Bad Copy Syntax - 2028 entries

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

  • Best score: 18
  • Best player score: 34
  • Position: #465 / 522
  • Number of attempts: 1
remove lines containing the word "reader" - 3574 entries

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #930 / 1874
  • Number of attempts: 3
Search and Replace 0 - 4964 entries

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

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1369 / 4185
  • Number of attempts: 2
One to Ten - 2209 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 / 669
  • Number of attempts: 3
Swap assigned value - 643 entries

Simple problem but looking for interesting solutions.

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

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2706 / 4174
  • Number of attempts: 1
Subtraction - 180 entries

Solve the equations.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2444 / 3679
  • Number of attempts: 4
Word frequency alignment - 290 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: #151 / 161
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 416 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 / 191
  • Number of attempts: 3
SFD-ROC: ROT13 Phonics - 101 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 / 73
  • Number of attempts: 5
Let's play some Ivmgolf - 1118 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #337 / 445
  • Number of attempts: 4
replacing each line of a block selection - 2996 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #229 / 775
  • Number of attempts: 6
Append semicolon after expressions - 1046 entries

Some lines need the semicolon, some don't.

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

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 15
  • Position: #86 / 198
  • Number of attempts: 4
Remove semicolons after expressions - 648 entries

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

  • Best score: 6
  • Best player score: 7
  • Position: #146 / 262
  • Number of attempts: 1
The meaning - 573 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #313 / 361
  • Number of attempts: 2
A Simple One - 1043 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 / 659
  • Number of attempts: 2
Reverse Simple Deletion - 845 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #371 / 457
  • Number of attempts: 2
Increment, increment, increment.... - 677 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #60 / 405
  • Number of attempts: 5
Context insensitive completion 0 - 558 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: #149 / 242
  • Number of attempts: 3
Sort and add attributes - 1421 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #374 / 552
  • 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