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

Morse - 148 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 90
  • Position: #24 / 33
  • Number of attempts: 5
New teacher - 1040 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #157 / 223
  • Number of attempts: 3
Quicksort - 2001 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 33
  • Position: #364 / 439
  • Number of attempts: 1
Populate 3D bone names list - 629 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 29
  • Position: #86 / 162
  • Number of attempts: 4
Find fix point of cos - 1403 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: 15
  • Position: #231 / 416
  • Number of attempts: 2
Insert column data on Confluence-style table - 458 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 45
  • Position: #50 / 109
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 561 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #207 / 314
  • Number of attempts: 1
Paste a column after a column - 2547 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #225 / 556
  • Number of attempts: 5
Reformat symbols in list - 1625 entries

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

  • Best score: 24
  • Best player score: 55
  • Position: #325 / 349
  • Number of attempts: 1
Many duplicates - 1447 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #293 / 470
  • Number of attempts: 3
delete swap - 1787 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #341 / 556
  • Number of attempts: 5
Put a newline after every 10 lines in vim - 1660 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #403 / 558
  • Number of attempts: 3
Wikitext headings to markdown - 987 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 41
  • Position: #159 / 209
  • Number of attempts: 2
hello-world-vimgolf - 2499 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #550 / 708
  • Number of attempts: 1
Extract argument from function - 2364 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 17
  • Position: #640 / 755
  • Number of attempts: 2
Search and Replace 0 - 5004 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #1081 / 1630
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10676 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2515 / 3687
  • Number of attempts: 1
attr_aligner - 3522 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 41
  • Position: #639 / 703
  • Number of attempts: 6
Rotating Philosophers Problem - 410 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 45
  • Position: #159 / 166
  • Number of attempts: 1
Reformat most common surnames - 743 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 46
  • Position: #181 / 215
  • Number of attempts: 3
Change the content of a string - 1591 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #429 / 593
  • Number of attempts: 3
Reconstruct the Sentence - 1575 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 22
  • Position: #277 / 423
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3727 entries

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

  • Best score: 16
  • Best player score: 39
  • Position: #730 / 800
  • Number of attempts: 2
Simple text editing with Vim - 12935 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1997 / 3725
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7102 entries

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

  • Best score: 28
  • Best player score: 52
  • Position: #1464 / 1743
  • Number of attempts: 4
Thermospore
Github:

entered into 25 challenges

contributed 0 challenges