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 - 34012 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: 27
  • Position: #3941 / 7513
  • Number of attempts: 2
V to the i - 4883 entries

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

  • Best score: 7
  • Best player score: 15
  • Position: #1875 / 1914
  • Number of attempts: 1
Todo list specification - 420 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Position: #65 / 187
  • Number of attempts: 3
Python Hello World! Reformatting - 1047 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #192 / 397
  • Number of attempts: 7
Paragraph sort - 479 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 14
  • Position: #12 / 128
  • Number of attempts: 5
Generate a list of numbers - 312 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #83 / 144
  • Number of attempts: 2
Assign numbers to fields - 122 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 22
  • Position: #59 / 64
  • Number of attempts: 3
Mute the second method of this script - 463 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #126 / 244
  • Number of attempts: 2
Test everything! - 213 entries

... and build the desired input data structure. Transform a list of values into a non-trivial format.

  • Best score: 21
  • Best player score: 43
  • Position: #53 / 58
  • Number of attempts: 1
-a-b-c- - 3241 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #173 / 1146
  • Number of attempts: 5
Hole-in-one - 1040 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: 23
  • Position: #268 / 307
  • Number of attempts: 3
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1243 / 1764
  • Number of attempts: 1
Make it more readable - 2039 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #313 / 658
  • Number of attempts: 4
Martynas Bardauskas
Twitter:

Software engineer @WixEng, former architect. Mostly working with #React #ReactNative #NodeJS

entered into 13 challenges

contributed 0 challenges