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 - 33964 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: #3390 / 7500
  • Number of attempts: 7
Swap values - 4701 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #961 / 1290
  • Number of attempts: 3
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

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

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #302 / 1181
  • Number of attempts: 5
One to Ten - 2247 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 / 685
  • Number of attempts: 2
Array transposition - 2472 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #299 / 458
  • Number of attempts: 3
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2338 / 4216
  • Number of attempts: 6
Words in parens - 13028 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #3006 / 3984
  • Number of attempts: 5
switch variable - 5110 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1246 / 1758
  • Number of attempts: 3
Simple text editing with Vim - 13509 entries

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

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

entered into 10 challenges

contributed 0 challenges