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

From brakets to parens - 933 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 42
  • Position: #154 / 216
  • Number of attempts: 4
Create json from a .env file - 1525 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 53
  • Position: #128 / 357
  • Number of attempts: 12
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: 22
  • Position: #2424 / 7490
  • Number of attempts: 11
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1518 / 4234
  • Number of attempts: 5
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 21
  • Position: #3805 / 4208
  • Number of attempts: 3
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #356 / 639
  • Number of attempts: 5
Whitespace, empty lines and tabs - 3952 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 26
  • Position: #466 / 842
  • Number of attempts: 4
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: 17
  • Position: #2642 / 3849
  • Number of attempts: 8
tphLatte
Github:

entered into 8 challenges

contributed 0 challenges