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 - 635 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: 60
  • Position: #90 / 128
  • Number of attempts: 2
Migrated to Postgres! - 152 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 35
  • Position: #57 / 65
  • Number of attempts: 1
Inverting Lines - 1009 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #218 / 274
  • Number of attempts: 1
Generate a very basic Python constructor - 188 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 46
  • Position: #27 / 50
  • Number of attempts: 2
Python dataclasses - 424 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 38
  • Position: #108 / 120
  • Number of attempts: 1
Making 3 line function a one liner. - 93 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #36 / 67
  • Number of attempts: 1
Modernise code - 656 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 59
  • Position: #132 / 152
  • Number of attempts: 1
Put a cross in the square - 88 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 28
  • Position: #41 / 41
  • Number of attempts: 1
HS Final exam vimgolf - 578 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 35
  • Position: #111 / 156
  • Number of attempts: 1
C to python code snippet - 44 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 76
  • Position: #11 / 15
  • Number of attempts: 2
Satisfy the go linter - 1625 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 27
  • Position: #223 / 334
  • Number of attempts: 4
Yo To Hello - 983 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #316 / 454
  • Number of attempts: 3
Python Hello World! Reformatting - 881 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: 47
  • Position: #290 / 340
  • Number of attempts: 1
Free hyphen! - 144 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Position: #77 / 79
  • Number of attempts: 2
Alphabet soup - 354 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 42
  • Position: #74 / 84
  • Number of attempts: 1

Contributed Challenges

Plotting some variables in python - 635 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.

A White Dwarf
Twitter:

entered into 15 challenges

contributed 1 challenges