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

Put a newline after every 10 lines in vim - 944 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #151 / 333
  • Number of attempts: 1
hello-world-vimgolf - 1534 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #288 / 438
  • Number of attempts: 2
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: 38
  • Position: #74 / 247
  • Number of attempts: 5
Transpose a python matrix - 591 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 43
  • Position: #48 / 107
  • Number of attempts: 4
Lowercase first characters - 359 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: 36
  • Position: #50 / 128
  • Number of attempts: 4
Rural Post - 4105 entries

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

  • Best score: 9
  • Best player score: 30
  • Position: #916 / 1015
  • Number of attempts: 1
Simple, Practical, and Common - 32910 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: 32
  • Position: #5872 / 7271
  • Number of attempts: 1
prepend * to every non-blank line - 5959 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 16
  • Position: #987 / 1463
  • Number of attempts: 3
Shrutesh Patil
Twitter:

Bad boi

entered into 8 challenges

contributed 0 challenges