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

Rearrange array to single level - 1742 entries

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

  • Best score: 14
  • Best player score: 26
  • Position: #143 / 291
  • Number of attempts: 7
Rearrange array to one line - 810 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #72 / 191
  • Number of attempts: 3
Quicksort - 2095 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: 28
  • Position: #335 / 465
  • Number of attempts: 2
Find fix point of cos - 1468 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: 16
  • Position: #286 / 431
  • Number of attempts: 3
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: 20
  • Position: #325 / 576
  • Number of attempts: 5
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 74
  • Position: #237 / 420
  • Number of attempts: 1
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #462 / 570
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1294 entries

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

  • Best score: 29
  • Best player score: 37
  • Position: #101 / 277
  • Number of attempts: 2
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 33
  • Position: #310 / 619
  • Number of attempts: 3
Jin Hao
Github:

entered into 9 challenges

contributed 0 challenges