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

Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 34
  • Position: #449 / 578
  • Number of attempts: 1
HS exam question - 1613 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 57
  • Position: #100 / 422
  • Number of attempts: 6
Reformat symbols in list - 1656 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 53
  • Position: #326 / 356
  • Number of attempts: 1
Fizzbuzz - 614 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 90
  • Position: #124 / 172
  • Number of attempts: 1
delete swap - 1884 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #196 / 578
  • Number of attempts: 7
Learn to ask for :help - 596 entries

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

  • Best score: 19
  • Best player score: 45
  • Position: #114 / 132
  • Number of attempts: 1
Inverting Lines - 1959 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #185 / 525
  • Number of attempts: 5
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #490 / 1291
  • Number of attempts: 5
One number per line - 18896 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #966 / 3902
  • Number of attempts: 9
Swap values inside brackets - 2549 entries

Easy challenge.

  • Best score: 13
  • Best player score: 23
  • Position: #487 / 593
  • Number of attempts: 3
V to the i - 4864 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #656 / 1912
  • Number of attempts: 2
Add semicolons - 10954 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #39 / 3097
  • Number of attempts: 8
Bad Copy Syntax - 2081 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #74 / 542
  • Number of attempts: 8
remove lines containing the word "reader" - 3646 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #217 / 1183
  • Number of attempts: 2
Box it - 7999 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1151 / 1899
  • Number of attempts: 1
Team names - 1860 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #235 / 595
  • Number of attempts: 5
One to Ten - 2249 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: 13
  • Position: #381 / 687
  • Number of attempts: 3
Join 'em - 257 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #64 / 156
  • Number of attempts: 2
Happy TvvO - 438 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #138 / 210
  • Number of attempts: 1
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1881 / 4222
  • Number of attempts: 5
quotes inside quotes - 3200 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Position: #493 / 1091
  • Number of attempts: 3
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 33
  • Position: #3929 / 3988
  • Number of attempts: 1
Context Insensitive completion 1 - 517 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 40
  • Position: #242 / 250
  • Number of attempts: 2
Hugo Tai
Twitter:

entered into 23 challenges

contributed 0 challenges