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

Many duplicates - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #62 / 480
  • Number of attempts: 2
2 quick changes and a numbered list - 660 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 42
  • Position: #64 / 156
  • Number of attempts: 4
delete swap - 1843 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #27 / 573
  • Number of attempts: 7
Fix the shell script! - 2676 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #25 / 622
  • Number of attempts: 5
Visual block training - 1116 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 19
  • Position: #51 / 208
  • Number of attempts: 7
hello-world-vimgolf - 2525 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #187 / 724
  • Number of attempts: 3
Learn to ask for :help - 593 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 38
  • Position: #103 / 131
  • Number of attempts: 1
Plotting some variables in python - 1684 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 40
  • Position: #125 / 353
  • Number of attempts: 3
Lowercase first characters - 499 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 33
  • Position: #23 / 185
  • Number of attempts: 1
simple replacements - 1873 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 21
  • Position: #158 / 401
  • Number of attempts: 4
Inverting Lines - 1954 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #158 / 523
  • Number of attempts: 4
Python dataclasses - 1248 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 25
  • Position: #165 / 311
  • Number of attempts: 2
HS Final exam vimgolf - 933 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #77 / 244
  • Number of attempts: 8
Rural Post - 4591 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #181 / 1120
  • Number of attempts: 4
Add string initializers to an enum - 899 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 24
  • Position: #149 / 264
  • Number of attempts: 2
SCREAMING_SNAKE_CASE to Title Case - 1269 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 20
  • Position: #119 / 264
  • Number of attempts: 3
Search and Replace 0 - 5089 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #691 / 1658
  • Number of attempts: 3
Python Hello World! Reformatting - 1015 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 42
  • Position: #135 / 390
  • Number of attempts: 1
Line under headers - 2093 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #243 / 514
  • Number of attempts: 2
Words in parens - 13024 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1175 / 3983
  • Number of attempts: 4
NATO phonetic alphabet - 539 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 21
  • Position: #111 / 198
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 435 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: 11
  • Position: #159 / 195
  • Number of attempts: 1
The name of the game - 679 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 12
  • Position: #326 / 364
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1624 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #251 / 453
  • Number of attempts: 1
Let's play some Ivmgolf - 1141 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #336 / 453
  • Number of attempts: 3
calculations - 321 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 47
  • Position: #43 / 70
  • Number of attempts: 1
Vertical Limit - 2624 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 24
  • Position: #314 / 774
  • Number of attempts: 1
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #333 / 678
  • Number of attempts: 4
Append semicolon after expressions - 1067 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #260 / 423
  • Number of attempts: 1
Remove semicolons after expressions - 669 entries

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

  • Best score: 6
  • Best player score: 6
  • Position: #121 / 265
  • Number of attempts: 3
Make it more readable - 2028 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #319 / 656
  • Number of attempts: 2
Sort entries based on date - 405 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 12
  • Position: #68 / 118
  • Number of attempts: 9
A Simple One - 1071 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: #540 / 674
  • Number of attempts: 1
Increment, increment, increment.... - 703 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #45 / 414
  • Number of attempts: 1
The Cake is a Lie - 1390 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #264 / 539
  • Number of attempts: 4
Reverse characters in a line - 813 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 13
  • Position: #89 / 274
  • Number of attempts: 2
Change the content of a string - 1761 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #533 / 645
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3968 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #25 / 848
  • Number of attempts: 8
Simple text editing with Vim - 13473 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Position: #669 / 3865
  • Number of attempts: 3
Levi Wheeler
Twitter:

entered into 39 challenges

contributed 0 challenges