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

Change part of a function name in multiple occurrences - 435 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Basic renumbering - 4682 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 3
Split line with dots - 1865 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 26
  • Number of attempts: 1
I forgot quotes - 12156 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 1
Words in parens - 11172 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Applying same text modification in several lines - 1786 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Delete to the end of the current line - 485 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 7
  • Number of attempts: 1
multiple cursor alternative - 1101 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 2
V to the i - 3973 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
remove lines containing the word "reader" - 1872 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
One to Ten - 1094 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: 14
  • Number of attempts: 1
Cool or not? - 506 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 22
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9600 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Swap values inside brackets - 1626 entries

Easy challenge.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
-a-b-c- - 2635 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
Copy three lines - 2128 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 2
Triangular Numbers - 59 entries

Generate the first 50 triangular numbers.

  • Best score: 18
  • Best player score: 23
  • Number of attempts: 1
Collect List - 3544 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Vice versa - 6064 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Every other line - 2128 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 3
Com(m)a Trouble - 1848 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Simple text editing with Vim - 10536 entries

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

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 1
Increment each number - 531 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 1
Izaak van Dongen
Twitter:

entered into 23 challenges

contributed 0 challenges