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

Contribute to keyboard mashing - 680 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #86 / 205
  • Number of attempts: 1
Learn to ask for :help - 429 entries

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

  • Best score: 19
  • Best player score: 23
  • Position: #20 / 97
  • Number of attempts: 4
Transpose a python matrix - 616 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 35
  • Position: #40 / 110
  • Number of attempts: 5
Create a diamond comment - 239 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 30
  • Position: #21 / 57
  • Number of attempts: 3
Lowercase first characters - 375 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: 35
  • Position: #43 / 135
  • Number of attempts: 2
simple replacements - 1153 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #11 / 256
  • Number of attempts: 7
Inverting Lines - 1399 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #58 / 383
  • Number of attempts: 7
Count to 100 in word form - 52 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 55
  • Best player score: 97
  • Position: #14 / 15
  • Number of attempts: 3
Making 3 line function a one liner. - 183 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #19 / 121
  • Number of attempts: 1
vimtutor, but you can cheat - 15 entries

It's time to revisit vimtutor, but as an experienced Vim user! Your goal is to change the file to appear as if you had gone through the tutorial, but you do NOT need to actually complete the tutorial as written or do anything that doesn't result in changes to the file. You may use whatever you have in your Vim toolbelt that's allowed under VimGolf rules. The whole tutorial is too large to submit, so only the relevant lesson headers and associated practice lines are presented in this challenge. You will have to reference the tutor for the original instructions if you need them: https://raw.githubusercontent.com/vim/vim/4466ad6baa22485abb1147aca3340cced4778a66/runtime/tutor/tutor

  • Best score: 149
  • Best player score: 200
  • Position: #6 / 7
  • Number of attempts: 2
Put a cross in the square - 128 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #37 / 58
  • Number of attempts: 1
HS Final exam vimgolf - 711 entries

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

  • Best score: 21
  • Best player score: 33
  • Position: #128 / 190
  • Number of attempts: 2
Python: Def to Lambda - 388 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #34 / 131
  • Number of attempts: 2
Turn the x - 261 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 20
  • Position: #26 / 67
  • Number of attempts: 5
Satisfy the go linter - 2025 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: 28
  • Position: #292 / 408
  • Number of attempts: 3
Yo To Hello - 1059 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 36
  • Position: #484 / 485
  • Number of attempts: 2
Add text at some column - 146 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 47
  • Position: #55 / 55
  • Number of attempts: 2
add line and index - 81 entries

a missed line and index names need to be added

  • Best score: 44
  • Best player score: 56
  • Position: #18 / 26
  • Number of attempts: 1
Cool or not? - 764 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 23
  • Position: #187 / 217
  • Number of attempts: 2
Preferably without multi-cursor plugin - 501 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 33
  • Position: #51 / 119
  • Number of attempts: 6
Join 'em - 232 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #6 / 137
  • Number of attempts: 1
change parenthesis - 256 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #80 / 144
  • Number of attempts: 2
move titles next to url, in quotes - 496 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 23
  • Position: #100 / 130
  • Number of attempts: 2
unknown command - 146 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #57 / 74
  • Number of attempts: 2
Not enough Ps - 66 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Position: #25 / 35
  • Number of attempts: 2
Fill visual area - 77 entries

Just have fun!

  • Best score: 20
  • Best player score: 62
  • Position: #28 / 34
  • Number of attempts: 1
vim1001 - 274 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 23
  • Position: #70 / 106
  • Number of attempts: 6
Piphilology - 125 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 29
  • Best player score: 38
  • Position: #41 / 50
  • Number of attempts: 1
Recursive Cowsay - 58 entries

Convert 'cowsay' statement to recursive output

  • Best score: 33
  • Best player score: 71
  • Position: #14 / 17
  • Number of attempts: 2
Draw the Go board - 140 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 75
  • Position: #37 / 48
  • Number of attempts: 2
calculations - 256 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 68
  • Position: #58 / 62
  • Number of attempts: 1
Exchanging Quotes - 800 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 34
  • Position: #83 / 220
  • Number of attempts: 2
Rotating Philosophers Problem - 382 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #82 / 161
  • Number of attempts: 1
Insert a Markdown link - 420 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 24
  • Position: #63 / 141
  • Number of attempts: 6

Contributed Challenges

Contribute to keyboard mashing - 680 entries

Speak in tongues

Make list of numbers from 1 to 30 more compact, but more confusing - 78 entries

Change the naming logic of numbers to end up with less lines.

Write Hello World in the 'i use arch btw' -programming language - 25 entries

> "I use Arch btw" is an esoteric programming language based on Brainfuck in which the Brainfuck commands have been replaced with the following keywords: i, use, arch, linux, btw, by, the, way. https://github.com/OverMighty/i-use-arch-btw

Solve anagram with ASCII letters - 26 entries

ASCII created by TOIlet command

Tuure
Twitter:

entered into 34 challenges

contributed 4 challenges