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 54aa4898e87aa400023e3a19

Wget failed to download redirections

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

Start file
--2015-01-04 17:52:38--  https://archive.org/download/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
Resolving archive.org... 207.241.224.2
Connecting to archive.org|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv [following]
--2015-01-04 17:52:39--  https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
Resolving ia700401.us.archive.org... 207.241.228.50
Connecting to ia700401.us.archive.org|207.241.228.50|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name `ia700401.us.archive.org'.
To connect to ia700401.us.archive.org insecurely, use `--no-check-certificate'.
--2015-01-04 18:01:21--  https://archive.org/download/ScarletStreet/Scarlet_Street_512kb.mp4
Resolving archive.org... 207.241.224.2
Connecting to archive.org|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4 [following]
--2015-01-04 18:01:22--  https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4
Resolving ia902300.us.archive.org... 207.241.228.50
Connecting to ia902300.us.archive.org|207.241.228.50|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name `ia902300.us.archive.org'.
To connect to ia902300.us.archive.org insecurely, use `--no-check-certificate'.
--2015-01-04 18:01:23--  https://archive.org/download/Timetable1956/Timetable1956.mp4
Resolving archive.org... 207.241.224.2
Connecting to archive.org|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4 [following]
--2015-01-04 18:01:24--  https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4
Resolving ia600801.us.archive.org... 207.241.227.151
Connecting to ia600801.us.archive.org|207.241.227.151|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name `ia600801.us.archive.org'.
To connect to ia600801.us.archive.org insecurely, use `--no-check-certificate'.
--2015-01-04 18:01:25--  https://archive.org/download/TooLateForTears/TooLateForTears.mp4
Resolving archive.org... 207.241.224.2
Connecting to archive.org|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4 [following]
--2015-01-04 18:01:27--  https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4
Resolving ia600409.us.archive.org... 207.241.227.219
Connecting to ia600409.us.archive.org|207.241.227.219|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name `ia600409.us.archive.org'.
To connect to ia600409.us.archive.org insecurely, use `--no-check-certificate'.
--2015-01-04 18:01:28--  https://archive.org/download/Quicksand_clear/Quicksand_512kb.mp4
Resolving archive.org... 207.241.224.2
Connecting to archive.org|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4 [following]
--2015-01-04 18:01:29--  https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4
Resolving ia600406.us.archive.org... 207.241.227.216
Connecting to ia600406.us.archive.org|207.241.227.216|:443... connected.
ERROR: no certificate subject alternative name matches
        requested host name `ia600406.us.archive.org'.
To connect to ia600406.us.archive.org insecurely, use `--no-check-certificate'.
End file
https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4
https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4
https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4
https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4

View Diff

1,55c1,5
< --2015-01-04 17:52:38--  https://archive.org/download/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
< Resolving archive.org... 207.241.224.2
< Connecting to archive.org|207.241.224.2|:443... connected.
< HTTP request sent, awaiting response... 302 Moved Temporarily
< Location: https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv [following]
< --2015-01-04 17:52:39--  https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
< Resolving ia700401.us.archive.org... 207.241.228.50
< Connecting to ia700401.us.archive.org|207.241.228.50|:443... connected.
< ERROR: no certificate subject alternative name matches
<         requested host name `ia700401.us.archive.org'.
< To connect to ia700401.us.archive.org insecurely, use `--no-check-certificate'.
< --2015-01-04 18:01:21--  https://archive.org/download/ScarletStreet/Scarlet_Street_512kb.mp4
< Resolving archive.org... 207.241.224.2
< Connecting to archive.org|207.241.224.2|:443... connected.
< HTTP request sent, awaiting response... 302 Moved Temporarily
< Location: https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4 [following]
< --2015-01-04 18:01:22--  https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4
< Resolving ia902300.us.archive.org... 207.241.228.50
< Connecting to ia902300.us.archive.org|207.241.228.50|:443... connected.
< ERROR: no certificate subject alternative name matches
<         requested host name `ia902300.us.archive.org'.
< To connect to ia902300.us.archive.org insecurely, use `--no-check-certificate'.
< --2015-01-04 18:01:23--  https://archive.org/download/Timetable1956/Timetable1956.mp4
< Resolving archive.org... 207.241.224.2
< Connecting to archive.org|207.241.224.2|:443... connected.
< HTTP request sent, awaiting response... 302 Moved Temporarily
< Location: https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4 [following]
< --2015-01-04 18:01:24--  https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4
< Resolving ia600801.us.archive.org... 207.241.227.151
< Connecting to ia600801.us.archive.org|207.241.227.151|:443... connected.
< ERROR: no certificate subject alternative name matches
<         requested host name `ia600801.us.archive.org'.
< To connect to ia600801.us.archive.org insecurely, use `--no-check-certificate'.
< --2015-01-04 18:01:25--  https://archive.org/download/TooLateForTears/TooLateForTears.mp4
< Resolving archive.org... 207.241.224.2
< Connecting to archive.org|207.241.224.2|:443... connected.
< HTTP request sent, awaiting response... 302 Moved Temporarily
< Location: https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4 [following]
< --2015-01-04 18:01:27--  https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4
< Resolving ia600409.us.archive.org... 207.241.227.219
< Connecting to ia600409.us.archive.org|207.241.227.219|:443... connected.
< ERROR: no certificate subject alternative name matches
<         requested host name `ia600409.us.archive.org'.
< To connect to ia600409.us.archive.org insecurely, use `--no-check-certificate'.
< --2015-01-04 18:01:28--  https://archive.org/download/Quicksand_clear/Quicksand_512kb.mp4
< Resolving archive.org... 207.241.224.2
< Connecting to archive.org|207.241.224.2|:443... connected.
< HTTP request sent, awaiting response... 302 Moved Temporarily
< Location: https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4 [following]
< --2015-01-04 18:01:29--  https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4
< Resolving ia600406.us.archive.org... 207.241.227.216
< Connecting to ia600406.us.archive.org|207.241.227.216|:443... connected.
< ERROR: no certificate subject alternative name matches
<         requested host name `ia600406.us.archive.org'.
< To connect to ia600406.us.archive.org insecurely, use `--no-check-certificate'.
---
> https://ia700401.us.archive.org/4/items/Man_Who_Cheated_Himself/Man_Who_Cheated_Himself.ogv
> https://ia902300.us.archive.org/25/items/ScarletStreet/Scarlet_Street_512kb.mp4
> https://ia600801.us.archive.org/4/items/Timetable1956/Timetable1956.mp4
> https://ia600409.us.archive.org/13/items/TooLateForTears/TooLateForTears.mp4
> https://ia600406.us.archive.org/14/items/Quicksand_clear/Quicksand_512kb.mp4

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 64 remaining solutions by signing in and submitting your own entry
#65 luffy / @raxcoi - Score: 38 - 01/06/15 @ 14:32
:g!/Location/d<CR><C-V>ggwld:%s/ \[f.*$//g<CR>ZZ

0 comments


Created by: @rmarvie

65 active golfers, 202 entries

Leaderboard (lowest score wins):
30
#61 - ltn614 / @ltn614

09/21/2015 at 11:01AM

32
#62 - Skúli Jóhannsson / @skulibj

06/26/2015 at 11:43PM

34
#63 - Константин / @xni

01/22/2015 at 01:38PM

34
#64 - Stefan Sonski / @stefansonski

03/08/2015 at 01:16PM

38
#65 - luffy / @raxcoi

01/06/2015 at 02:32PM