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

Fix the shell script! - 787 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #71 / 297
  • Number of attempts: 4
Plotting some variables in python - 1127 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: #172 / 238
  • Number of attempts: 1
Lowercase first characters - 324 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 / 118
  • Number of attempts: 7
Generate a very basic Python constructor - 268 entries

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

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

Simple challenge for frequent action while programming.

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

LAMBDA!!!

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

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

  • Best score: 9
  • Best player score: 9
  • Position: #174 / 1008
  • Number of attempts: 4
Satisfy the go linter - 1996 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 / 400
  • Number of attempts: 14
Simple, Practical, and Common - 32879 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 / 7266
  • Number of attempts: 11
One number per line - 18367 entries

Just give me the numbers.

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

On to the next one.

entered into 11 challenges

contributed 0 challenges