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

Create json from a .env file - 1682 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 114
  • Position: #374 / 411
  • Number of attempts: 1
Reordering properties - 1371 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 41
  • Position: #55 / 297
  • Number of attempts: 1
New teacher - 1527 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #225 / 319
  • Number of attempts: 1
Quicksort - 2113 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: 7
  • Position: #159 / 472
  • Number of attempts: 8
Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #163 / 578
  • Number of attempts: 8
Poorly indented Python comments - 1350 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 17
  • Position: #66 / 225
  • 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: 29
  • Position: #26 / 278
  • Number of attempts: 10
hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #193 / 726
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1161 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 28
  • Position: #135 / 235
  • Number of attempts: 1
Com(m)a Trouble - 3993 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 17
  • Position: #614 / 910
  • Number of attempts: 1
Remember FizzBuzz? - 818 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 77
  • Position: #167 / 209
  • Number of attempts: 1
Luke Korn
Twitter:

entered into 11 challenges

contributed 0 challenges