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

Swap values - 4616 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #477 / 1268
  • Number of attempts: 4
Swap values inside brackets - 2496 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Position: #176 / 579
  • Number of attempts: 9
V to the i - 4806 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1358 / 1894
  • Number of attempts: 3
Split line with dots - 2144 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Position: #231 / 634
  • Number of attempts: 6
Com(m)a Trouble - 3823 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #237 / 865
  • Number of attempts: 8
Box it - 7906 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 53
  • Position: #1784 / 1877
  • Number of attempts: 1
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #84 / 230
  • Number of attempts: 6
Copy three lines - 2872 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #504 / 640
  • Number of attempts: 3
Flip the bit - 130 entries

Change the specific 0 to a 1.

  • Best score: 7
  • Best player score: 10
  • Position: #59 / 74
  • Number of attempts: 1
Just the middle - 11457 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2807 / 4198
  • Number of attempts: 3
One to Ten - 2219 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
  • Position: #452 / 672
  • Number of attempts: 3
Change part of a function name in multiple occurrences - 662 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: 15
  • Position: #99 / 208
  • Number of attempts: 2
Delete to the end of the current line - 812 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #98 / 391
  • Number of attempts: 4
I forgot quotes - 15989 entries

Oops.

  • Best score: 10
  • Best player score: 49
  • Position: #4169 / 4181
  • Number of attempts: 1
chenqiqi
Twitter:

entered into 14 challenges

contributed 0 challenges