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

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #116 / 179
  • Number of attempts: 2
Rearrange array to single level - 1814 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: #91 / 306
  • Number of attempts: 3
Rearrange array to one line - 888 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #120 / 204
  • Number of attempts: 3
Copy punctuation - 736 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: #109 / 179
  • Number of attempts: 1
Deleting text - 342 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #41 / 110
  • Number of attempts: 3
Remove line numbers - 784 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 / 208
  • Number of attempts: 1
delete swap - 1884 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #367 / 578
  • 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 - 1022 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: #200 / 391
  • Number of attempts: 2
Reformat a C golf submission - 644 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: #72 / 216
  • Number of attempts: 6
Alex Khakhlyuk
Github:

entered into 11 challenges

contributed 0 challenges