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

166 active golfers, 747 entries

Leaderboard (lowest score wins):
56
#151 - Asmund / @herrasbe

01/14/2013 at 09:55PM

58
#152 - Gavin Rogers / @KC9KVQ

03/26/2013 at 01:48AM

58
#153 - Tj / @yrddy

08/19/2014 at 08:53AM

61
#154 - Siu / @davidsinuela

02/17/2012 at 03:59PM

61
#155 - Justin Knag / @justinknag

08/28/2014 at 03:35PM

62
#156 - Matt Woelk / @MattWoelk

02/09/2012 at 04:43AM

63
#157 - artanis / @artanislives

02/03/2012 at 09:27PM

63
#158 - Horatio Tashe / @deothrin

03/12/2012 at 10:29AM

63
#159 - Felipe Jaramillo F / @mrfelipe

04/03/2014 at 03:39AM

69
#160 - Jonathan C. Dietrich / @jcdietrich

02/08/2012 at 01:01AM

71
#161 - Patrick Pitoscia / @Patrick03960431

08/17/2014 at 12:11AM

79
#162 - ise0615 / @ise0615

05/02/2012 at 06:36PM

82
#163 - Bart3k / @Bart3k3

09/18/2018 at 07:25AM

97
#164 - Camillott Games / @camillottgames

11/27/2019 at 07:50PM

144
#165 - Bartłomiej Kozal / @bkzl_

03/13/2012 at 10:15PM

337
#166 - Poojalakshmi / @spoojalakshmi

03/23/2012 at 03:10PM