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

Tabbed Table to Python Array - 227 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 52
  • Best player score: 61
  • Position: #31 / 65
  • Number of attempts: 6
HS exam question - 905 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 81
  • Position: #157 / 247
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 879 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 47
  • Position: #114 / 193
  • Number of attempts: 3
Fill in the chess board - 700 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 52
  • Position: #118 / 147
  • Number of attempts: 2
Get mail address from outlook format - 603 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 23
  • Position: #161 / 189
  • Number of attempts: 3
prepend * to every non-blank line - 6081 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 16
  • Position: #1048 / 1485
  • Number of attempts: 3
Python Hello World! Reformatting - 916 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: 43
  • Position: #184 / 358
  • Number of attempts: 2
Wrap text in quotes - 348 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 17
  • Position: #72 / 119
  • Number of attempts: 2
One to Ten - 2119 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: 12
  • Position: #350 / 648
  • Number of attempts: 3
ASCII Art - 82 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #32 / 52
  • Number of attempts: 1
Suffix sort - 244 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 29
  • Position: #52 / 64
  • Number of attempts: 2
Winding path - 93 entries

It's a maze, but the bad paths have been blocked off. Mark the correct path.

  • Best score: 27
  • Best player score: 68
  • Position: #33 / 40
  • Number of attempts: 2
Vim tetris - 352 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 36
  • Position: #86 / 101
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10562 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1593 / 3646
  • Number of attempts: 2
Hole-in-one - 985 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 23
  • Position: #264 / 300
  • Number of attempts: 1
The name of the game - 637 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #274 / 349
  • Number of attempts: 1
Stairs Indenting - 440 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 15
  • Position: #151 / 189
  • Number of attempts: 1
Make it more readable - 1925 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #406 / 633
  • Number of attempts: 2
Letters are numbers - 147 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 26
  • Position: #36 / 72
  • Number of attempts: 5
Braces or Brackets? - 752 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 42
  • Position: #103 / 262
  • Number of attempts: 2
Hugh
Twitter:

entered into 20 challenges

contributed 0 challenges