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 - 263 entries

Quick and easy

  • Best score: 2
  • Best player score: 8
  • Position: #23 / 96
  • Number of attempts: 2
2 quick changes and a numbered list - 177 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: #25 / 47
  • Number of attempts: 4
delete swap - 330 entries

delete all swap

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

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #22 / 91
  • Number of attempts: 7
hello-world-vimgolf - 1512 entries

Simple number generation

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

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

  • Best score: 19
  • Best player score: 38
  • Position: #71 / 90
  • Number of attempts: 1
Plotting some variables in python - 1166 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: #89 / 246
  • Number of attempts: 3
Lowercase first characters - 357 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 / 127
  • Number of attempts: 1
simple replacements - 1070 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 21
  • Position: #105 / 238
  • Number of attempts: 4
Inverting Lines - 1291 entries

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 25
  • Position: #85 / 169
  • Number of attempts: 2
HS Final exam vimgolf - 666 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: #61 / 176
  • Number of attempts: 8
Rural Post - 4105 entries

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

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

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 24
  • Position: #126 / 226
  • Number of attempts: 2
SCREAMING_SNAKE_CASE to Title Case - 1117 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: #110 / 232
  • Number of attempts: 3
Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #691 / 1541
  • Number of attempts: 3
Python Hello World! Reformatting - 897 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: #124 / 350
  • Number of attempts: 1
Line under headers - 1918 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #224 / 472
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1154 / 3919
  • Number of attempts: 4
NATO phonetic alphabet - 476 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 21
  • Position: #104 / 181
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 388 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: #152 / 180
  • Number of attempts: 1
The name of the game - 627 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 12
  • Position: #309 / 343
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1508 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: #241 / 424
  • Number of attempts: 1
Let's play some Ivmgolf - 1004 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #318 / 417
  • Number of attempts: 3
calculations - 255 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 47
  • Position: #38 / 61
  • Number of attempts: 1
Vertical Limit - 2367 entries

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

  • Best score: 21
  • Best player score: 24
  • Position: #291 / 716
  • Number of attempts: 1
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #315 / 627
  • Number of attempts: 4
Append semicolon after expressions - 942 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #244 / 385
  • Number of attempts: 1
Remove semicolons after expressions - 541 entries

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

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

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #301 / 622
  • Number of attempts: 2
Sort entries based on date - 339 entries

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

  • Best score: 11
  • Best player score: 12
  • Position: #64 / 110
  • Number of attempts: 9
A Simple One - 915 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 / 609
  • Number of attempts: 1
Increment, increment, increment.... - 567 entries

Vim likes macros

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

Correct the capitalization of each word

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

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

  • Best score: 12
  • Best player score: 13
  • Position: #77 / 236
  • Number of attempts: 2
Change the content of a string - 1346 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #441 / 520
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2970 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #25 / 661
  • Number of attempts: 8
Simple text editing with Vim - 11619 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 / 3408
  • Number of attempts: 3
Levi Wheeler
Twitter:

entered into 39 challenges

contributed 0 challenges