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

Simple, Practical, and Common - 33647 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 28
  • Position: #4409 / 7425
  • Number of attempts: 2
One number per line - 18749 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #780 / 3867
  • Number of attempts: 11
Swap values inside brackets - 2500 entries

Easy challenge.

  • Best score: 13
  • Best player score: 15
  • Position: #186 / 580
  • Number of attempts: 5
Add semicolons - 10872 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #985 / 3067
  • Number of attempts: 3
Bad Copy Syntax - 2038 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 19
  • Position: #96 / 526
  • Number of attempts: 7
remove lines containing the word "reader" - 3592 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #38 / 1164
  • Number of attempts: 6
Com(m)a Trouble - 3831 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #225 / 867
  • Number of attempts: 10
Box it - 7909 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #605 / 1878
  • Number of attempts: 11
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #106 / 230
  • Number of attempts: 2
Align commas - 1095 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Position: #78 / 246
  • Number of attempts: 10
One to Ten - 2220 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: 13
  • Position: #382 / 673
  • Number of attempts: 6
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: #80 / 208
  • Number of attempts: 5
Simple text editing with Vim - 12856 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #2743 / 3707
  • Number of attempts: 2
波波
Twitter:

entered into 13 challenges

contributed 0 challenges