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

Quicksort - 2049 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: 27
  • Position: #316 / 454
  • Number of attempts: 5
Find fix point of cos - 1432 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: 27
  • Position: #349 / 424
  • Number of attempts: 9
Surround the 'z' character with brackets, quotes, and print as formatted string. - 571 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #108 / 320
  • Number of attempts: 3
Easier Align - 421 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 165
  • Position: #50 / 98
  • Number of attempts: 1
Making 3 line function a one liner. - 340 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #158 / 209
  • Number of attempts: 3
Enumerate Bullets - 327 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 18
  • Best player score: 75
  • Position: #84 / 89
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3814 entries

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

  • Best score: 16
  • Best player score: 72
  • Position: #807 / 820
  • Number of attempts: 3
Simple text editing with Vim - 13183 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #690 / 3789
  • Number of attempts: 5
Josh Pius
Twitter2:

entered into 8 challenges

contributed 0 challenges