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

Rotating Philosophers Problem - 354 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 32
  • Number of attempts: 2
Pretty multi-line bash - 194 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 31
  • Number of attempts: 1
Numbering a List - 1720 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 25
  • Number of attempts: 1
Alsa configuration - 459 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 9
vim1001 - 227 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 26
  • Number of attempts: 1
Simple, Practical, and Common - 24466 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: 2
  • Best player score: 22
  • Number of attempts: 20
Hole-in-one - 935 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: 22
  • Number of attempts: 1
quotes inside quotes - 2758 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 2
  • Best player score: 14
  • Number of attempts: 14
Suffix sort - 165 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 8
I forgot quotes - 11557 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9432 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 8
One to Ten - 845 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: 15
  • Number of attempts: 2
V to the i - 3860 entries

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

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 8
vim = 22 / 7 - 398 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Number of attempts: 1
Lisp Condense - 371 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 2
Just the middle - 9077 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 5
Words in parens - 10932 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 4
Create a pandoc compatible table - 139 entries

In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

  • Best score: 32
  • Best player score: 66
  • Number of attempts: 3
Swap values - 3483 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
Array propagate - 227 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 61
  • Number of attempts: 2
-a-b-c- - 2549 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 4
Guillaume Seren
Twitter:

Floss enthusiast & Freelance Dev, Vim, Gnu/Linux, Gentoo, the tweets engage my cat responsability's

entered into 21 challenges

contributed 0 challenges