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 - 25753 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
Box it - 3572 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 11
Bad Copy Syntax - 662 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
Align commas - 854 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
Com(m)a Trouble - 1849 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 - 2824 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
remove lines containing the word "reader" - 1881 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
Change part of a function name in multiple occurrences - 439 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
One number per line - 13426 entries

Just give me the numbers.

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

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 5
One to Ten - 1099 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
Cool or not? - 519 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Simple text editing with Vim - 10544 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
波波
Twitter:

entered into 13 challenges

contributed 0 challenges