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 - 33724 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: #4417 / 7442
  • Number of attempts: 2
One number per line - 18755 entries

Just give me the numbers.

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

Easy challenge.

  • Best score: 13
  • Best player score: 15
  • Position: #187 / 583
  • Number of attempts: 5
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #986 / 3072
  • Number of attempts: 3
Bad Copy Syntax - 2044 entries

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

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

easy stuff

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

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

  • Best score: 12
  • Best player score: 13
  • Position: #228 / 876
  • Number of attempts: 10
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #605 / 1881
  • 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 - 2227 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: #383 / 677
  • 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 - 12989 entries

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

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

entered into 13 challenges

contributed 0 challenges