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

Paste a column after a column - 2102 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #20 / 450
  • Number of attempts: 11
HS exam question - 1411 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 98
  • Position: #303 / 381
  • Number of attempts: 4
Reformat symbols in list - 1393 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 25
  • Position: #84 / 309
  • Number of attempts: 8
Many duplicates - 1188 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #204 / 386
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1543 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #366 / 515
  • Number of attempts: 3
Plotting some variables in python - 1531 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: 37
  • Position: #97 / 326
  • Number of attempts: 12
Generate a very basic Python constructor - 307 entries

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

  • Best score: 38
  • Best player score: 71
  • Position: #77 / 94
  • Number of attempts: 1
Rural Post - 4342 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #191 / 1062
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3278 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #297 / 726
  • Number of attempts: 3
Flodder-challenge - 1074 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 36
  • Position: #165 / 304
  • Number of attempts: 5
Simple text editing with Vim - 12203 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1917 / 3559
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6499 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 55
  • Position: #1424 / 1599
  • Number of attempts: 1
­김수현 / 학생 / 건설환경공학부
Twitter:

entered into 12 challenges

contributed 0 challenges