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 - 33724 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: 26
  • Position: #3686 / 7442
  • Number of attempts: 11
Swap values inside brackets - 2511 entries

Easy challenge.

  • Best score: 13
  • Best player score: 17
  • Position: #295 / 583
  • Number of attempts: 5
Applying same text modification in several lines - 2893 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 15
  • Position: #508 / 856
  • Number of attempts: 4
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #557 / 1169
  • Number of attempts: 4
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #597 / 1881
  • Number of attempts: 5
Copy three lines - 2875 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 20
  • Position: #414 / 641
  • Number of attempts: 3
Extract argument from function - 2364 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 14
  • Position: #363 / 755
  • Number of attempts: 4
Number Sort - 314 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #87 / 166
  • Number of attempts: 3
One to Ten - 2227 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: 15
  • Position: #519 / 677
  • Number of attempts: 1
Build a six - 294 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #19 / 95
  • Number of attempts: 4
Simple format (2) - 335 entries

try again!

  • Best score: 23
  • Best player score: 36
  • Position: #55 / 70
  • Number of attempts: 1
Vertical Limit - 2552 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 22
  • Position: #173 / 757
  • Number of attempts: 9
replacing each line of a block selection - 3001 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 29
  • Position: #639 / 778
  • Number of attempts: 1
Bob_V
Twitter:

entered into 13 challenges

contributed 0 challenges