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 - 33969 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 / 7502
  • Number of attempts: 9
V to the i - 4860 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1398 / 1910
  • Number of attempts: 2
Applying same text modification in several lines - 2927 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #403 / 865
  • Number of attempts: 1
Add semicolons - 10934 entries

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #70 / 541
  • Number of attempts: 7
remove lines containing the word "reader" - 3643 entries

easy stuff

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #39 / 235
  • Number of attempts: 5
multiple cursor alternative - 1556 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: #170 / 386
  • Number of attempts: 4
From argument to object - 1552 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 / 469
  • Number of attempts: 5
Two pairs of cluster of letters creates word - 767 entries

Clean and group.

  • Best score: 17
  • Best player score: 21
  • Position: #119 / 180
  • Number of attempts: 4
Just the middle - 11582 entries

Delete the instructions at the top and bottom.

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

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Position: #37 / 270
  • Number of attempts: 4
One to Ten - 2247 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 / 685
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 680 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: #110 / 212
  • Number of attempts: 4
Join 'em - 254 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #92 / 153
  • Number of attempts: 1
change parenthesis - 301 entries

change the pair of braces into a pair of parentheses

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

Oops.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2408 / 3711
  • Number of attempts: 1
Hole-in-one - 1039 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: #299 / 306
  • Number of attempts: 1
Markus
Twitter:

entered into 19 challenges

contributed 0 challenges