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

Find fix point of cos - 648 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 17
  • Position: #117 / 181
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 335 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #69 / 176
  • Number of attempts: 3
Paste a column after a column - 1676 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 23
  • Position: #233 / 366
  • Number of attempts: 3
HS exam question - 1275 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 72
  • Position: #176 / 347
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1426 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #136 / 481
  • Number of attempts: 3
Java to JavaScript - 225 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 108
  • Position: #51 / 60
  • Number of attempts: 2
Plotting some variables in python - 1431 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: 43
  • Position: #130 / 305
  • Number of attempts: 2
Rural Post - 4290 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #319 / 1052
  • Number of attempts: 6
Satisfy the go linter - 2108 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: 34
  • Position: #356 / 427
  • Number of attempts: 1
Simple, Practical, and Common - 33236 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: 29
  • Position: #4906 / 7330
  • Number of attempts: 5
prepend * to every non-blank line - 6141 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #625 / 1500
  • Number of attempts: 6
One number per line - 18559 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2276 / 3830
  • Number of attempts: 4
Add semicolons - 10744 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1569 / 3030
  • Number of attempts: 2
Box it - 7782 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 44
  • Position: #1728 / 1853
  • Number of attempts: 1
Pieter-Jan Lavaerts
Twitter:

entered into 14 challenges

contributed 0 challenges