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 - 33616 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: #3361 / 7420
  • Number of attempts: 7
Swap values - 4616 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #952 / 1268
  • Number of attempts: 3
Add semicolons - 10852 entries

Simply add a semicolon at the end of each line

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

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #302 / 1162
  • Number of attempts: 5
One to Ten - 2219 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 / 672
  • Number of attempts: 2
Array transposition - 2417 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Position: #295 / 448
  • Number of attempts: 3
I forgot quotes - 15983 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2316 / 4180
  • Number of attempts: 6
Words in parens - 12935 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2990 / 3963
  • Number of attempts: 5
switch variable - 5071 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1238 / 1748
  • Number of attempts: 3
Simple text editing with Vim - 12811 entries

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

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

entered into 10 challenges

contributed 0 challenges