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

Poorly indented Python comments - 744 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 15
  • Position: #10 / 141
  • Number of attempts: 13
Many duplicates - 589 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #69 / 207
  • Number of attempts: 2
Fix the shell script! - 1381 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #5 / 345
  • Number of attempts: 6
Put a newline after every 10 lines in vim - 1163 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #79 / 401
  • Number of attempts: 4
Plotting some variables in python - 1264 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: 59
  • Position: #196 / 268
  • Number of attempts: 1
Lowercase first characters - 387 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: 33
  • Position: #20 / 142
  • Number of attempts: 7
Migrated to Postgres! - 244 entries

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

  • Best score: 26
  • Best player score: 26
  • Position: #10 / 96
  • Number of attempts: 3
Generate a very basic Python constructor - 285 entries

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

  • Best score: 38
  • Best player score: 38
  • Position: #20 / 82
  • Number of attempts: 12
Making 3 line function a one liner. - 194 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #80 / 127
  • Number of attempts: 1
Python: Def to Lambda - 392 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #55 / 135
  • Number of attempts: 3
Rural Post - 4156 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #174 / 1030
  • Number of attempts: 4
Satisfy the go linter - 2031 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: 20
  • Position: #122 / 412
  • Number of attempts: 14
Simple, Practical, and Common - 33029 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #1184 / 7290
  • Number of attempts: 11
One number per line - 18439 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1158 / 3802
  • Number of attempts: 2
Brett Bender
Twitter:

On to the next one.

entered into 14 challenges

contributed 0 challenges