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 154 remaining solutions by signing in and submitting your own entry
#155 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

155 active golfers, 646 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

20
#8 - Kerson Hsiao / @KersonHsiao

08/06/2012 at 03:19AM

20
#9 - Conner McDaniel / @connermcd

09/18/2012 at 04:52AM

20
#10 - Victor Ramirez / @virako

01/25/2013 at 04:53AM

20
#11 - Marco Hinz / @_mhinz_

05/24/2013 at 10:30AM

20
#12 - Petro Тrouq / @zulolosi

07/04/2013 at 07:20PM

20
#13 - pftb12345 / @pftb12345

04/12/2015 at 05:38AM

20
#14 - Dimitar Dimitrov / @kurkale6ka

03/23/2016 at 12:13PM

20
#15 - Saki Gw / @Sakigw

11/25/2016 at 09:58PM

20
#16 - Daniel / @Daniel00288663

04/19/2017 at 01:43PM

20
#17 - Turkey Man / @lvturkeyman

11/25/2017 at 04:24AM

20
#18 - DHM / @DHM29978992

04/30/2018 at 04:19PM

21
#19 - Trevor Powell / @DoomedBunnies

02/18/2012 at 11:32PM

21
#20 - Justin Love / @wondible

02/19/2012 at 04:16AM

21
#21 - William Dunand / @wdunand

02/20/2012 at 03:35AM

21
#22 - Song Zheng / @songz

02/22/2012 at 08:56AM

21
#23 - Tim Chase / @gumnos

02/22/2012 at 07:32PM

21
#24 - Renat Aksitov / @Korvin79

03/07/2012 at 11:56PM

21
#25 - Jomo / @yoyoyojomo

03/14/2012 at 07:26AM

21
#26 - Tibor Claassen / @codebeige

05/01/2012 at 12:51PM

21
#27 - Sebastian Kusnier / @skusnier

05/04/2012 at 10:15PM

21
#28 - Federico Galassi / @federicogalassi

05/05/2012 at 09:01AM

21
#29 - Jiří Chára / @JiriChara

05/07/2012 at 08:09PM

21
#30 - Sergey / @sav86

05/13/2012 at 10:36PM