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

Quicksort - 1458 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #34 / 317
  • Number of attempts: 4
Find fix point of cos - 1075 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #156 / 313
  • Number of attempts: 4
HS exam question - 1468 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 87
  • Position: #277 / 388
  • Number of attempts: 3
Fix the shell script! - 2064 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #7 / 496
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1554 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 14
  • Position: #388 / 518
  • Number of attempts: 1
hello-world-vimgolf - 2307 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #71 / 652
  • Number of attempts: 7
Contribute to keyboard mashing - 825 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #8 / 251
  • Number of attempts: 8
Reordering Lorem Ipsum - 231 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #5 / 58
  • Number of attempts: 10
Inverting Lines - 1797 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #34 / 486
  • Number of attempts: 9
swap number pairs - 2002 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 17
  • Position: #64 / 369
  • Number of attempts: 11
Rural Post - 4351 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #44 / 1066
  • Number of attempts: 13
Simple, Practical, and Common - 33353 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: #1528 / 7358
  • Number of attempts: 15
prepend * to every non-blank line - 6201 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #339 / 1514
  • Number of attempts: 8
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #902 / 3841
  • Number of attempts: 7
Swap values inside brackets - 2464 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Position: #160 / 569
  • Number of attempts: 11
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #56 / 840
  • Number of attempts: 4
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #343 / 3042
  • Number of attempts: 13
Com(m)a Trouble - 3654 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #204 / 821
  • Number of attempts: 13
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #871 / 4160
  • Number of attempts: 5
Team names - 1805 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #195 / 581
  • Number of attempts: 5
Basic renumbering - 5584 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Position: #759 / 1257
  • Number of attempts: 3
Vice versa - 7778 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #414 / 2095
  • Number of attempts: 10
I forgot quotes - 15922 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #801 / 4159
  • Number of attempts: 15
120 Degrees - 468 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 24
  • Position: #100 / 143
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10616 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1326 / 3663
  • Number of attempts: 3
Make it more readable - 1952 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #90 / 640
  • Number of attempts: 9
Sando Itchi
Twitter:

entered into 26 challenges

contributed 0 challenges