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

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

  • Best score: 14
  • Best player score: 34
  • Position: #395 / 514
  • Number of attempts: 1
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 57
  • Position: #93 / 401
  • Number of attempts: 6
Reformat symbols in list - 1482 entries

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

  • Best score: 24
  • Best player score: 53
  • Position: #300 / 328
  • Number of attempts: 1
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 90
  • Position: #114 / 160
  • Number of attempts: 1
delete swap - 1614 entries

delete all swap

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

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

  • Best score: 19
  • Best player score: 45
  • Position: #110 / 127
  • Number of attempts: 1
Inverting Lines - 1866 entries

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

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

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #484 / 1259
  • Number of attempts: 5
One number per line - 18644 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #952 / 3849
  • Number of attempts: 9
Swap values inside brackets - 2465 entries

Easy challenge.

  • Best score: 14
  • Best player score: 23
  • Position: #468 / 570
  • Number of attempts: 3
V to the i - 4761 entries

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

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

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #71 / 518
  • Number of attempts: 8
remove lines containing the word "reader" - 3555 entries

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1134 / 1868
  • Number of attempts: 1
Team names - 1808 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #235 / 582
  • Number of attempts: 5
One to Ten - 2174 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: #367 / 664
  • Number of attempts: 3
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #60 / 151
  • Number of attempts: 2
Happy TvvO - 417 entries

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

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

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1860 / 4165
  • Number of attempts: 5
quotes inside quotes - 3128 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: #488 / 1073
  • Number of attempts: 3
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 33
  • Position: #3890 / 3949
  • Number of attempts: 1
Context Insensitive completion 1 - 464 entries

Finish writing this simple Python HTTP server.

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

entered into 23 challenges

contributed 0 challenges