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

Resort and deup a CSV list - 79 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 44
  • Number of attempts: 3
Simple format (2) - 220 entries

try again!

  • Best score: 23
  • Best player score: 24
  • Number of attempts: 5
Box it - 1825 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 3
Build a six - 173 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 2
Flip the bit - 68 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
ninja substitution - 247 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Every other line - 2028 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 1
One to Ten - 752 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
comment and uncomment code inline - 765 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Convert Application Output to CSV - 97 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 19
  • Number of attempts: 1
Letterbox - 68 entries

Make a box!

  • Best score: 35
  • Best player score: 49
  • Number of attempts: 2
Triangular Numbers - 48 entries

Generate the first 50 triangular numbers.

  • Best score: 18
  • Best player score: 31
  • Number of attempts: 3
Swap values inside brackets - 1325 entries

Easy challenge.

  • Best score: 2
  • Best player score: 15
  • Number of attempts: 1
simple format (3) - 37 entries

reverse two column values!

  • Best score: 34
  • Best player score: 47
  • Number of attempts: 1
Increment each number - 392 entries

Increment each number individually by one

  • Best score: 6
  • Best player score: 18
  • Number of attempts: 4
One number per line - 12107 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
Two pairs of cluster of letters creates word - 315 entries

Clean and group.

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 1
Roger Stoltz
Twitter:

entered into 17 challenges

contributed 0 challenges