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

Rearrange array to single level - 1829 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 23
  • Position: #109 / 307
  • Number of attempts: 1
Rearrange array to one line - 889 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 20
  • Position: #96 / 205
  • Number of attempts: 3
Copy punctuation - 739 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 34
  • Position: #77 / 181
  • Number of attempts: 2
Populate 3D bone names list - 656 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 31
  • Position: #106 / 169
  • Number of attempts: 5
Tabbed Table to Python Array - 777 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: 50
  • Best player score: 66
  • Position: #138 / 186
  • Number of attempts: 2
Fizzbuzz - 614 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 77
  • Position: #90 / 172
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1295 entries

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

  • Best score: 29
  • Best player score: 117
  • Position: #262 / 278
  • Number of attempts: 1
Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #286 / 624
  • Number of attempts: 3
Visual block training - 1118 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 56
  • Position: #162 / 209
  • Number of attempts: 1
Context Insensitive completion 1 - 532 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 56
  • Position: #251 / 252
  • Number of attempts: 1
Sort and add attributes - 1591 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 34
  • Position: #411 / 615
  • Number of attempts: 3
Whitespace, empty lines and tabs - 4044 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 25
  • Position: #444 / 862
  • Number of attempts: 3
Simple text editing with Vim - 13626 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2051 / 3902
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7681 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 44
  • Position: #1204 / 1889
  • Number of attempts: 3
amberg12
Github:

entered into 14 challenges

contributed 0 challenges