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

Move to corresponding lines - 251 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 36
  • Position: #50 / 57
  • Number of attempts: 1
Rearrange array to one line - 667 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 26
  • Position: #125 / 161
  • Number of attempts: 1
Copy punctuation - 521 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 42
  • Position: #83 / 133
  • Number of attempts: 2
Column wise pasting - 174 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 24
  • Position: #18 / 39
  • Number of attempts: 8
Deleting text - 257 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #60 / 84
  • Number of attempts: 2
Format a long line - 88 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 18
  • Position: #10 / 27
  • Number of attempts: 5
Morse - 148 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 110
  • Position: #27 / 33
  • Number of attempts: 2
New teacher - 1109 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #111 / 237
  • Number of attempts: 5
months to html list items - 1042 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #146 / 284
  • Number of attempts: 3
Quicksort - 2003 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: 24
  • Position: #257 / 441
  • Number of attempts: 3
Remove line numbers - 736 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 12
  • Position: #74 / 198
  • Number of attempts: 4
Find fix point of cos - 1408 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: #237 / 418
  • Number of attempts: 2
Fizzbuzz - 575 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 72
  • Position: #70 / 168
  • Number of attempts: 2
Many duplicates - 1447 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #307 / 470
  • Number of attempts: 5
2 quick changes and a numbered list - 647 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 57
  • Position: #102 / 154
  • Number of attempts: 1
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #368 / 557
  • Number of attempts: 1
V to the i - 4813 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #1501 / 1897
  • Number of attempts: 4
Wrap the text of an email message to 79 characters - 799 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #309 / 421
  • Number of attempts: 2
Python Hello World! Reformatting - 1000 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 42
  • Position: #136 / 382
  • Number of attempts: 6
Whitespace, empty lines and tabs - 3744 entries

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

  • Best score: 16
  • Best player score: 37
  • Position: #726 / 804
  • Number of attempts: 1
Simple text editing with Vim - 12996 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2017 / 3739
  • Number of attempts: 2
Jonathan Schaaij
Github:

entered into 21 challenges

contributed 0 challenges