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

Swap values - 4667 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #486 / 1284
  • Number of attempts: 3
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1898 / 3893
  • Number of attempts: 4
Applying same text modification in several lines - 2920 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #164 / 864
  • Number of attempts: 3
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #10 / 3087
  • Number of attempts: 3
remove lines containing the word "reader" - 3631 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #206 / 1179
  • Number of attempts: 2
Com(m)a Trouble - 3968 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #47 / 901
  • Number of attempts: 6
Wrap the text of an email message to 79 characters - 852 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #245 / 441
  • Number of attempts: 3
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #641 / 1895
  • Number of attempts: 4
Cool or not? - 852 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #36 / 234
  • Number of attempts: 4
Search and Replace 0 - 5042 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #581 / 1643
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1241 / 4234
  • Number of attempts: 2
ninja substitution - 1436 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #99 / 270
  • Number of attempts: 7
One to Ten - 2243 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: #121 / 683
  • Number of attempts: 3
Around the clock - 212 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 13
  • Position: #4 / 79
  • Number of attempts: 5
Join 'em - 254 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #35 / 153
  • Number of attempts: 2
Reorder the groups - 1195 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 17
  • Position: #132 / 267
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1738 / 3979
  • Number of attempts: 5
NATO phonetic alphabet - 538 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 19
  • Position: #39 / 197
  • Number of attempts: 7
Remove semicolons after expressions - 669 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #101 / 265
  • Number of attempts: 2
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #555 / 1756
  • Number of attempts: 7
Make it more readable - 2015 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #95 / 654
  • Number of attempts: 7
Ruby 1.9 hashes - 1277 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 12
  • Position: #91 / 413
  • Number of attempts: 6
Increment, increment, increment.... - 703 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 414
  • Number of attempts: 1
Sort and add attributes - 1557 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #219 / 601
  • Number of attempts: 3
deurzen
Twitter:

Becoming a file: *nix, Vim, and programming

entered into 24 challenges

contributed 0 challenges