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

Remove adjacent duplicates - 727 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #116 / 182
  • Number of attempts: 2
Rearrange array to single level - 1829 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 21
  • Position: #92 / 307
  • Number of attempts: 3
Rearrange array to one line - 889 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #121 / 205
  • Number of attempts: 3
Copy punctuation - 743 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: #111 / 182
  • Number of attempts: 1
Deleting text - 350 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #41 / 113
  • Number of attempts: 3
Remove line numbers - 786 entries

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

  • Best score: 8
  • Best player score: 41
  • Position: #178 / 209
  • Number of attempts: 1
delete swap - 1912 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #367 / 580
  • Number of attempts: 5
Generate a very basic Python constructor (fixed) - 1295 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 56
  • Position: #224 / 278
  • Number of attempts: 2
Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 35
  • Position: #360 / 624
  • Number of attempts: 1
Python Hello World! Reformatting - 1052 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: 43
  • Position: #203 / 400
  • Number of attempts: 2
Reformat a C golf submission - 681 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 28
  • Position: #75 / 222
  • Number of attempts: 6
Alex Khakhlyuk
Github:

entered into 11 challenges

contributed 0 challenges