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

Rural Post - 4596 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 11
  • Position: #524 / 1122
  • Number of attempts: 7
Yo To Hello - 1155 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #246 / 536
  • Number of attempts: 11
Simple, Practical, and Common - 33988 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: #2254 / 7509
  • Number of attempts: 3
prepend * to every non-blank line - 6390 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #314 / 1560
  • Number of attempts: 1
Add semicolons - 10954 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1609 / 3097
  • Number of attempts: 2
remove lines containing the word "reader" - 3646 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #827 / 1183
  • Number of attempts: 4
Box it - 7999 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #388 / 1899
  • Number of attempts: 16
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1430 / 4253
  • Number of attempts: 8
One to Ten - 2249 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: #306 / 687
  • Number of attempts: 1
Collect List - 4333 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #496 / 1197
  • Number of attempts: 7
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1078 / 4222
  • Number of attempts: 15
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1138 / 3988
  • Number of attempts: 10
Simple text editing with Vim - 13576 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #641 / 3892
  • Number of attempts: 5
Er St
Twitter:

entered into 13 challenges

contributed 0 challenges