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

Replace pattern with 1, 2, 3, ... on each line - 1098 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: 40
  • Position: #180 / 225
  • Number of attempts: 3
prepend * to every non-blank line - 6208 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #173 / 1517
  • Number of attempts: 1
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1008 / 3842
  • Number of attempts: 4
Vice versa - 7805 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Position: #1939 / 2101
  • Number of attempts: 3
I forgot quotes - 15931 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1031 / 4161
  • Number of attempts: 3
Amit Kumar
Twitter:

Ethical Hacker , Competitive Programmer

entered into 5 challenges

contributed 0 challenges