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 - 33930 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: #3387 / 7490
  • Number of attempts: 7
Swap values - 4670 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #958 / 1285
  • Number of attempts: 3
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

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

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #302 / 1179
  • Number of attempts: 5
One to Ten - 2243 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 / 683
  • Number of attempts: 2
Array transposition - 2453 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #298 / 455
  • Number of attempts: 3
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2333 / 4208
  • Number of attempts: 6
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #3002 / 3979
  • Number of attempts: 5
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1244 / 1756
  • Number of attempts: 3
Simple text editing with Vim - 13427 entries

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

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

entered into 10 challenges

contributed 0 challenges