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

Plotting some variables in python - 1172 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 44
  • Position: #106 / 247
  • Number of attempts: 2
Lowercase first characters - 357 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 43
  • Position: #79 / 127
  • Number of attempts: 1
Inverting Lines - 1296 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #204 / 363
  • Number of attempts: 3
Python dataclasses - 650 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 29
  • Position: #103 / 169
  • Number of attempts: 1
Swap assigned value - 556 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 13
  • Position: #213 / 235
  • Number of attempts: 3
Prefixes and suffixes - 567 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 29
  • Position: #140 / 185
  • Number of attempts: 3
abcd > a b c d - 260 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #184 / 204
  • Number of attempts: 1
A simple change - 396 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #119 / 175
  • Number of attempts: 2
Let's play some Ivmgolf - 1004 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #313 / 417
  • Number of attempts: 2
Vertical Limit - 2367 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Position: #531 / 716
  • Number of attempts: 2
Append semicolon after expressions - 942 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #332 / 385
  • Number of attempts: 1
Remove semicolons after expressions - 541 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 10
  • Position: #226 / 235
  • Number of attempts: 1
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1228 / 1701
  • Number of attempts: 1
The meaning - 521 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #297 / 336
  • Number of attempts: 1
Sort the cardinal numbers - 274 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #123 / 140
  • Number of attempts: 3
A Simple One - 916 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #519 / 610
  • Number of attempts: 1
Increment, increment, increment.... - 567 entries

Vim likes macros

  • Best score: 10
  • Best player score: 11
  • Position: #46 / 370
  • Number of attempts: 1
Context insensitive completion 0 - 468 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 8
  • Position: #131 / 221
  • Number of attempts: 2
Make Fancy Header - 963 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #119 / 326
  • Number of attempts: 3
Sort and add attributes - 1189 entries

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

  • Best score: 33
  • Best player score: 37
  • Position: #394 / 483
  • Number of attempts: 2
Simple text editing with Vim - 11624 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2131 / 3410
  • Number of attempts: 2
tpoeiras
Twitter:

entered into 21 challenges

contributed 0 challenges