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

Translate Morse code to Text

  • Best score: 31
  • Best player score: 90
  • Position: #25 / 35
  • Number of attempts: 5
New teacher - 1376 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #197 / 287
  • Number of attempts: 3
Quicksort - 2038 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: #376 / 452
  • Number of attempts: 1
Populate 3D bone names list - 636 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #87 / 164
  • Number of attempts: 4
Find fix point of cos - 1432 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: #233 / 424
  • Number of attempts: 2
Insert column data on Confluence-style table - 474 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: #51 / 110
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 570 entries

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

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

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

  • Best score: 14
  • Best player score: 17
  • Position: #229 / 566
  • Number of attempts: 5
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 55
  • Position: #327 / 352
  • Number of attempts: 1
Many duplicates - 1459 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #294 / 476
  • Number of attempts: 3
delete swap - 1814 entries

delete all swap

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #404 / 559
  • Number of attempts: 3
Wikitext headings to markdown - 1003 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 41
  • Position: #160 / 210
  • Number of attempts: 2
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #553 / 713
  • Number of attempts: 1
Extract argument from function - 2372 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #642 / 757
  • Number of attempts: 2
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1082 / 1631
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2518 / 3695
  • Number of attempts: 1
attr_aligner - 3525 entries

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

  • Best score: 19
  • Best player score: 41
  • Position: #640 / 706
  • 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 - 757 entries

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

  • Best score: 23
  • Best player score: 46
  • Position: #183 / 219
  • Number of attempts: 3
Change the content of a string - 1675 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #445 / 616
  • Number of attempts: 3
Reconstruct the Sentence - 1651 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: #282 / 435
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3795 entries

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

  • Best score: 16
  • Best player score: 39
  • Position: #742 / 816
  • Number of attempts: 2
Simple text editing with Vim - 13145 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2005 / 3778
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7261 entries

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

  • Best score: 10
  • Best player score: 52
  • Position: #1484 / 1792
  • Number of attempts: 4
Thermospore
Github:

entered into 25 challenges

contributed 0 challenges