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

One number per line - 16287 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 11
Swap values inside brackets - 2136 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 5
Simple text editing with Vim - 11015 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: 2
One to Ten - 1720 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
  • Number of attempts: 6
remove lines containing the word "reader" - 2825 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
Cool or not? - 652 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Bad Copy Syntax - 1588 entries

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

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 7
Box it - 6053 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 11
Align commas - 929 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
  • Number of attempts: 10
Change part of a function name in multiple occurrences - 552 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
  • Number of attempts: 5
Simple, Practical, and Common - 29847 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
  • Number of attempts: 2
Com(m)a Trouble - 2718 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 10
Add semicolons - 7790 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
波波
Twitter:

entered into 13 challenges

contributed 0 challenges