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 - 33385 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: 24
  • Position: #2999 / 7364
  • Number of attempts: 5
prepend * to every non-blank line - 6208 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #38 / 1517
  • Number of attempts: 6
Swap values inside brackets - 2464 entries

Easy challenge.

  • Best score: 14
  • Best player score: 21
  • Position: #421 / 569
  • Number of attempts: 3
V to the i - 4751 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #626 / 1879
  • Number of attempts: 4
Add semicolons - 10792 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1848 / 3044
  • Number of attempts: 3
remove lines containing the word "reader" - 3537 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #105 / 1144
  • Number of attempts: 7
Box it - 7827 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #813 / 1864
  • Number of attempts: 3
One to Ten - 2165 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: 14
  • Position: #416 / 662
  • Number of attempts: 4
Build a six - 272 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 23
  • Position: #66 / 92
  • Number of attempts: 4
Delete to the end of the current line - 791 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #24 / 385
  • Number of attempts: 3
move titles next to url, in quotes - 504 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 24
  • Position: #108 / 135
  • Number of attempts: 1
replacing each line of a block selection - 2947 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #478 / 768
  • Number of attempts: 4
Kevin Ullmann
Twitter:

#nerd, #atheist and #humanist

entered into 12 challenges

contributed 0 challenges