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

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

  • Best score: 14
  • Best player score: 34
  • Position: #403 / 523
  • Number of attempts: 1
HS exam question - 1523 entries

Convert the data to a python dictionary

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

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

  • Best score: 24
  • Best player score: 53
  • Position: #305 / 334
  • Number of attempts: 1
Fizzbuzz - 539 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 90
  • Position: #116 / 162
  • Number of attempts: 1
delete swap - 1650 entries

delete all swap

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

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

  • Best score: 19
  • Best player score: 45
  • Position: #111 / 128
  • Number of attempts: 1
Inverting Lines - 1870 entries

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

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

Well, swap the values...

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #956 / 3852
  • Number of attempts: 9
Swap values inside brackets - 2477 entries

Easy challenge.

  • Best score: 14
  • Best player score: 23
  • Position: #471 / 573
  • Number of attempts: 3
V to the i - 4771 entries

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

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

Simply add a semicolon at the end of each line

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

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

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

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1136 / 1870
  • Number of attempts: 1
Team names - 1812 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #235 / 585
  • 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 - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1860 / 4166
  • 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 - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 33
  • Position: #3891 / 3950
  • Number of attempts: 1
Context Insensitive completion 1 - 471 entries

Finish writing this simple Python HTTP server.

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

entered into 23 challenges

contributed 0 challenges