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 - 1631 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: #136 / 271
  • Number of attempts: 7
Rearrange array to one line - 758 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #68 / 182
  • Number of attempts: 3
Quicksort - 2058 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: #329 / 457
  • Number of attempts: 2
Find fix point of cos - 1444 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: #284 / 427
  • Number of attempts: 3
Paste a column after a column - 2632 entries

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

  • Best score: 14
  • Best player score: 20
  • Position: #321 / 570
  • Number of attempts: 5
HS exam question - 1599 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 74
  • Position: #236 / 419
  • Number of attempts: 1
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #460 / 567
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1281 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: #100 / 275
  • Number of attempts: 2
Fix the shell script! - 2651 entries

Fix the shell script with the fewest keystrokes!

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

entered into 9 challenges

contributed 0 challenges