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 - 178 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 90
  • Position: #26 / 36
  • Number of attempts: 5
New teacher - 1494 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #214 / 312
  • Number of attempts: 3
Quicksort - 2098 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: #387 / 467
  • Number of attempts: 1
Populate 3D bone names list - 652 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #90 / 168
  • Number of attempts: 4
Find fix point of cos - 1483 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: #235 / 433
  • Number of attempts: 2
Insert column data on Confluence-style table - 501 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: #52 / 113
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 580 entries

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

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

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

  • Best score: 14
  • Best player score: 17
  • Position: #236 / 576
  • Number of attempts: 5
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 55
  • Position: #330 / 355
  • Number of attempts: 1
Many duplicates - 1481 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #295 / 481
  • Number of attempts: 3
delete swap - 1878 entries

delete all swap

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #408 / 566
  • Number of attempts: 3
Wikitext headings to markdown - 1029 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 41
  • Position: #163 / 213
  • Number of attempts: 2
hello-world-vimgolf - 2531 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #561 / 725
  • Number of attempts: 1
Extract argument from function - 2397 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #649 / 766
  • Number of attempts: 2
Search and Replace 0 - 5102 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1095 / 1662
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2527 / 3711
  • Number of attempts: 1
attr_aligner - 3565 entries

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

  • Best score: 19
  • Best player score: 41
  • Position: #642 / 709
  • Number of attempts: 6
Rotating Philosophers Problem - 411 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 / 167
  • Number of attempts: 1
Reformat most common surnames - 809 entries

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

  • Best score: 23
  • Best player score: 46
  • Position: #196 / 234
  • Number of attempts: 3
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #465 / 647
  • Number of attempts: 3
Reconstruct the Sentence - 1710 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: #288 / 451
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3974 entries

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

  • Best score: 16
  • Best player score: 39
  • Position: #770 / 850
  • Number of attempts: 2
Simple text editing with Vim - 13509 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2028 / 3874
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7579 entries

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

  • Best score: 7
  • Best player score: 52
  • Position: #1538 / 1871
  • Number of attempts: 4
Thermospore
Github:

entered into 25 challenges

contributed 0 challenges