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 - 2262 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 / 491
  • Number of attempts: 11
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 98
  • Position: #315 / 397
  • Number of attempts: 4
Reformat symbols in list - 1470 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #86 / 323
  • Number of attempts: 8
Many duplicates - 1253 entries

Quick and easy

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #373 / 525
  • Number of attempts: 3
Plotting some variables in python - 1567 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: #99 / 334
  • 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 - 4368 entries

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

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

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

  • Best score: 16
  • Best player score: 22
  • Position: #303 / 736
  • Number of attempts: 3
Flodder-challenge - 1117 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 36
  • Position: #169 / 311
  • Number of attempts: 5
Simple text editing with Vim - 12290 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1919 / 3581
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6558 entries

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

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

entered into 12 challenges

contributed 0 challenges