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 4f2be242779cbc000100000c

Ugly spreadsheet copy/paste to CSV

convert an ugly spreadsheet copy/paste into a CSV format.

Start file
TIANJIN
DALIAN
HUANGPU
NINGBO
QINGDAO
SHANGHAI
SHANTOU
SHENZHEN
WUHAN
HONG KONG
HAIPHONG

885
885
910
860
885
860
1080
860
1040
860
935

1585
1585
1635
1535
1585
1535
1885
1535
1860
1535
1795

1710
1710
1760
1660
1610
1660
2010
1660
1985
1660
1920
End file
TIANJIN,885,1585,1710
DALIAN
,885,1585,1710
HUANGPU
,910,1635,1760
NINGBO
,860,1535,1660
QINGDAO
,885,1585,1610
SHANGHAI
,860,1535,1660
SHANTOU
,1080,1885,2010
SHENZHEN
,860,1535,1660
WUHAN
,1040,1860,1985
HONG KONG
,860,1535,1660
HAIPHONG
,935,1795,1920

View Diff

1,47c1,11
< TIANJIN
< DALIAN
< HUANGPU
< NINGBO
< QINGDAO
< SHANGHAI
< SHANTOU
< SHENZHEN
< WUHAN
< HONG KONG
< HAIPHONG
<
< 885
< 885
< 910
< 860
< 885
< 860
< 1080
< 860
< 1040
< 860
< 935
<
< 1585
< 1585
< 1635
< 1535
< 1585
< 1535
< 1885
< 1535
< 1860
< 1535
< 1795
<
< 1710
< 1710
< 1760
< 1660
< 1610
< 1660
< 2010
< 1660
< 1985
< 1660
< 1920
---
> TIANJIN,885,1585,1710
> DALIAN,885,1585,1710
> HUANGPU,910,1635,1760
> NINGBO,860,1535,1660
> QINGDAO,885,1585,1610
> SHANGHAI,860,1535,1660
> SHANTOU,1080,1885,2010
> SHENZHEN,860,1535,1660
> WUHAN,1040,1860,1985
> HONG KONG,860,1535,1660
> HAIPHONG,935,1795,1920

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 192 remaining solutions by signing in and submitting your own entry
#193 Poojalakshmi / @spoojalakshmi - Score: 337 - 03/23/12 @ 15:10
<Esc>l13<Esc>f13<Esc><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Left><Left> <Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Right><Right><Right><Right><Right><Right><Right>i<Right>,885,1585,1710<Down>,885,1585,1710<Down>,910,1635,1760<Down>,860,1535,1535<Down>.<BS>,885,1585,1610<Down>,860,1535,1535<Down>1080<Left><Left><Left><Left>,<Right><Right><Right><Right>,1080<BS><BS><BS><BS>1885,<Up><Up><Up><Left><Del><Del><Del>660<Down><Down><Left><Del><Del><Del>660<Down>v<BS>2010<Down>.<BS>,860,1535,1660<Down>,1040,18601985<Left><Left><Left><Left>,<Down>,860,1535,1660<Down>,935,1795,1920<Down><Esc>dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd<Esc>:wq<CR>

0 comments


Created by: @akarzim

193 active golfers, 1009 entries

Leaderboard (lowest score wins):
19
#1 - Urtica dioica / @udioica

08/08/2014 at 12:22AM

19
#2 - John Braxler / @braxler

12/16/2014 at 03:47PM

19
#3 - kimber gonzalez / @kimberlycreates

02/06/2015 at 03:40PM

19
#4 - sijinyuan / @sijinyuan

03/21/2017 at 01:20AM

19
#5 - Zhihong Liu / @pieapple03

03/21/2017 at 01:21AM

19
#6 - Dominic Z / @thammaaa

01/24/2018 at 10:24AM

19
#7 - Daniël De Koker / @daniel_koker

07/26/2018 at 08:09PM

19
#8 - alekfed / @alek_fed

04/17/2019 at 07:24AM

19
#9 - Miłosz Łakomy / @foobar01123

01/19/2020 at 10:04AM

19
#10 - blabla zincou / @BZincou

04/11/2022 at 09:49PM

19
#11 - russellzhaomao / @russellzhaomao

06/06/2022 at 01:38AM

19
#12 - Qing Liu / @poeminlash

08/13/2022 at 05:04AM

19
#13 - 刘宏亮 / @AkeyCoy

09/25/2022 at 07:00AM

19
#14 - Peppa Pig / @PeppaPigSg

06/26/2024 at 09:01AM

19
#15 - Suhaib Murshid / @suhaibm

09/21/2024 at 08:37AM

20
#16 - Kerson Hsiao / @KersonHsiao

08/06/2012 at 03:19AM

20
#17 - Conner McDaniel / @connermcd

09/18/2012 at 04:52AM

20
#18 - Victor Ramirez / @virako

01/25/2013 at 04:53AM

20
#19 - Marco Hinz / @_mhinz_

05/24/2013 at 10:30AM

20
#20 - Petro Тrouq / @zulolosi

07/04/2013 at 07:20PM

20
#21 - pftb12345 / @pftb12345

04/12/2015 at 05:38AM

20
#22 - Dimitar Dimitrov / @kurkale6ka

03/23/2016 at 12:13PM

20
#23 - Saki Gw / @Sakigw

11/25/2016 at 09:58PM

20
#24 - Daniel / @Daniel00288663

04/19/2017 at 01:43PM

20
#25 - Turkey Man / @lvturkeyman

11/25/2017 at 04:24AM

20
#26 - DHM / @DHM29978992

04/30/2018 at 04:19PM

20
#27 - Dax / @zacoxi

12/07/2018 at 08:05AM

20
#28 - Mihai / @mihaicristiant

01/28/2019 at 12:03PM

20
#29 - majo senf / @majo_senf

06/25/2019 at 09:34AM

20
#30 - RockerZZY / @rocker_zzy

06/22/2020 at 12:56AM