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 - 33866 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: 25
  • Position: #3383 / 7474
  • Number of attempts: 7
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #957 / 1282
  • Number of attempts: 3
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #249 / 3085
  • Number of attempts: 2
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #302 / 1177
  • Number of attempts: 5
One to Ten - 2241 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: 12
  • Position: #190 / 682
  • Number of attempts: 2
Array transposition - 2436 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #297 / 452
  • Number of attempts: 3
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2328 / 4202
  • Number of attempts: 6
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #3001 / 3977
  • Number of attempts: 5
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1242 / 1754
  • Number of attempts: 3
Simple text editing with Vim - 13262 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #3056 / 3810
  • Number of attempts: 1
Lawrence Gray
Twitter:

entered into 10 challenges

contributed 0 challenges