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 - 32904 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: #1861 / 7270
  • Number of attempts: 9
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1371 / 1856
  • Number of attempts: 2
Applying same text modification in several lines - 2748 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #374 / 815
  • Number of attempts: 1
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #106 / 2988
  • Number of attempts: 7
Bad Copy Syntax - 1938 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 19
  • Position: #61 / 493
  • Number of attempts: 7
remove lines containing the word "reader" - 3454 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #238 / 1121
  • Number of attempts: 4
Cool or not? - 761 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #39 / 216
  • Number of attempts: 5
multiple cursor alternative - 1447 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 20
  • Position: #164 / 369
  • Number of attempts: 4
From argument to object - 1262 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #117 / 417
  • Number of attempts: 5
Two pairs of cluster of letters creates word - 710 entries

Clean and group.

  • Best score: 17
  • Best player score: 21
  • Position: #109 / 166
  • Number of attempts: 4
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1258 / 4112
  • Number of attempts: 3
ninja substitution - 1300 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Position: #37 / 247
  • Number of attempts: 4
One to Ten - 2093 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: #143 / 641
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 598 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 15
  • Position: #100 / 191
  • Number of attempts: 4
Join 'em - 228 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #75 / 134
  • Number of attempts: 1
change parenthesis - 251 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #28 / 140
  • Number of attempts: 3
I forgot quotes - 15727 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #894 / 4113
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2363 / 3637
  • Number of attempts: 1
Hole-in-one - 973 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 29
  • Position: #290 / 297
  • Number of attempts: 1
Markus
Twitter:

entered into 19 challenges

contributed 0 challenges