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

Dumb to smart

Turn dumb quote to smart vim's way.

Start file
Dhṛtarāṣṭra said: "O Sañjaya what did my sons desirous of battle and Pāṇḍu's son do after assembling at the holy land of righteousness Kurukṣetra ?"
- 'Bhagavad Gītā's first shokla'
End file
Dhṛtarāṣṭra said: “O Sañjaya what did my sons desirous of battle and Pāṇḍu’s son do after assembling at the holy land of righteousness Kurukṣetra ?”
- ‘Bhagavad Gītā’s first shokla’

View Diff

1,2c1,2
< Dhṛtarāṣṭra said: "O Sañjaya what did my sons desirous of battle and Pāṇḍu's son do after assembling at the holy land of righteousness Kurukṣetra ?"
< - 'Bhagavad Gītā's first shokla'
---
> Dhṛtarāṣṭra said: “O Sañjaya what did my sons desirous of battle and Pāṇḍu’s son do after assembling at the holy land of righteousness Kurukṣetra ?”
> - ‘Bhagavad Gītā’s first shokla’

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 36 remaining solutions by signing in and submitting your own entry
#37 Thedward the Edward / thedward - Score: 39 - 12/31/10 @ 21:53
/"<CR>cl<0xe2><0x80><0x9c><Esc>ncl<0xe2><0x80><0x9d><Esc>/'<CR>cl<0xe2><0x80><0x98><Esc>:%s/'/<0xe2><0x80><0x99>/g<CR>ZZ

0 comments

#38 Ricardo Sisnett / mrjackinc - Score: 40 - 01/02/11 @ 05:55
:s/"/<0xe2><0x80><0x9c><CR>:<Up><BS><0xe2><0x80><0x9d><CR>j:s/'/<0xe2><0x80><0x98><CR>:%s/'/<0xe2><0x80><0x99>/g<CR>ZZ

0 comments

#39 mnx / mnxx - Score: 40 - 12/04/13 @ 22:21
f"r<C-V>u201c$r<C-V>u201dF'r<C-V>u2019).;.;r<C-V>u2018ZZ

0 comments

#40 James / Dronak - Score: 42 - 08/29/13 @ 23:35
f"r<C-V>u201c$r<C-V>u201dF'r<C-V>u2019j.F'.F'r<C-V>u2018ZZ

0 comments

#41 Alain Gilbert / alain_gilbert - Score: 49 - 12/31/10 @ 18:04
f"r<0xe2><0x80><0x9c>f'r<0xe2><0x80><0x99>f"r<0xe2><0x80><0x9d>jr<0xe2><0x80><0x99>F'r<0xe2><0x80><0x99>F'r<0xe2><0x80><0x98>ZZ

0 comments

#42 Eike Schulte / eikeschulte - Score: 55 - 12/31/10 @ 15:38
3wr<0xe2><0x80><0x9c>10ww5lr<0xe2><0x80><0x99>$r<0xe2><0x80><0x9d>jr<0xe2><0x80><0x99>^llr<0xe2><0x80><0x98>2w4lr<0xe2><0x80><0x99>ZZ

0 comments

#43 Mathias Bynens  / mathias - Score: 65 - 04/08/11 @ 09:36
:q<BS>set enc=utf-8<CR>f"r<0xe2><0x80><0x9d>r<0xe2><0x80><0x9c>f'<0xe2><0x80><0x99>r<0xe2><0x80><0x99>f"r<0xe2><0x80><0x9d>f'j0f'r<0xe2><0x80><0x98>;r<0xe2><0x80><0x99>f'r<0xe2><0x80><0x99>ZZ

mathias: Am I missing something here? How do you get it to load as UTF-8 using vimgolf’s .vimrc?

1 comment

#44 Guillaume Bonnoron / gbonnoron - Score: 79 - 12/31/10 @ 11:00
:%s<Tab><BS><BS><BS><BS>/"/<0xe2><0x80><0x9c>/<CR>:%s/"/<0xe2><0x80><0x9d>/<CR>:<Up><Left><BS><0xe2><0x80><0x99><Left><Left><BS>'<End>g<CR>llr<0xe2><0x80><0x98>ZZ

0 comments

#45 Ujjwol Lamichhane / Ujjwol - Score: 88 - 12/31/10 @ 10:09
:%s/\v"(("\w|[^"])+)"/<0xe2><0x80><0x9c>\1<0xe2><0x80><0x9d>/g<CR>:%s/\v'(('\w|[^"])+)'/<0xe2><0x80><0x98>\1<0xe2><0x80><0x99>/g<CR>:%s/'/<0xe2><0x80><0x99><CR>ZZ

0 comments

#46 無ん垢の叫び / john_ababa - Score: 215 - 02/23/12 @ 17:17
cGDh<0xe1><0xb9><0x9b>tar<0xc4><0x81><0xe1><0xb9><0xa3><0xe1><0xb9><0xad>ra said: <0xe2><0x80><0x9c>O Sa<0xc3><0xb1>jaya what did my sons desirous of battle and P<0xc4><0x81><0xe1><0xb9><0x87><0xe1><0xb8><0x8d>u<0xe2><0x80><0x99>s son do after assembling at the holy land of righteousness Kuruk<0xe1><0xb9><0xa3>etra ?<0xe2><0x80><0x9d><CR>- <0xe2><0x80><0x98>Bhagavad G<0xc4><0xab>t<0xc4><0x81><0xe2><0x80><0x99>s first shokla<0xe2><0x80><0x99><Esc>ZZ

0 comments

Created by: Ujjwol

46 active golfers, 78 entries

Leaderboard (lowest score wins):
28
#1 - jcmvbkbc / jcmvbkbc

01/18/2011 at 09:09PM

28
#2 - You-Siang Lin / yslinnctu

12/02/2011 at 08:32AM

28
#3 - Urtica dioica / udioica

07/08/2012 at 09:09AM

28
#4 - Conner McDaniel / connermcd

09/20/2012 at 04:51AM

28
#5 - John Braxler / braxler

10/14/2014 at 05:34PM

28
#6 - Jon Krause / jkrause314

02/09/2016 at 09:12AM

29
#7 - Henri Bourcereau / mmai

12/31/2010 at 10:41AM

29
#8 - Matthew Draper / _matthewd

12/31/2010 at 11:25AM

29
#9 - Wei Dai / clvv42

01/01/2011 at 07:44PM

29
#10 - dominique pellé / vimgolfisto

01/03/2011 at 08:44AM

29
#11 - Johannes Martinsson / moxiba

01/07/2011 at 07:23PM

29
#12 - Justin Love / wondible

07/02/2011 at 02:34PM

29
#13 - Tullio Facchinetti / toolleeo

07/25/2013 at 08:21PM

29
#14 - Matthieu Crapet / mcr05

02/01/2015 at 09:32AM

30
#15 - aaaa3331 / aaaa3331

01/04/2011 at 05:40PM

30
#16 - Tim Chase / gumnos

01/13/2011 at 08:49PM

30
#17 - Trevor Powell / DoomedBunnies

12/01/2011 at 12:17AM

30
#18 - tPenguinLTG / tpenguinltg

10/11/2016 at 12:50AM

31
#19 - Pete Johns / johnsyweb

01/02/2011 at 08:16AM

31
#20 - Aurélien Delahaye / alkove

01/02/2011 at 11:05AM

31
#21 - aimee / sermoa

01/08/2011 at 05:55PM

31
#22 - Dühöngő / aswna

08/31/2011 at 07:11PM

32
#23 - Jordan Lewis / JordanALewis

01/01/2011 at 03:39AM

32
#24 - Soliman Sylvain / sylvain_soliman

01/01/2011 at 06:00PM

33
#25 - Bradly Feeley / bradly

01/11/2011 at 06:05AM

34
#26 - Douglas Stockwell / dstockwell

12/31/2010 at 09:28PM

34
#27 - Vincent Isambart / vincentisambart

12/31/2010 at 11:31PM

34
#28 - Øystein Walle / oysteinwalle

07/06/2011 at 12:35AM

34
#29 - Oliver Christ / 0liverChrist

12/07/2013 at 09:34PM

36
#30 - Marian Schubert / MarianSchubert

12/31/2010 at 12:43PM

36
#31 - Thomas Schönwälder / Masei1988

01/15/2011 at 06:41PM

36
#32 - h_east (トロッコ6個) / h_east

01/30/2011 at 02:55AM

36
#33 - Hu Junfeng / junfeng

07/22/2011 at 07:51AM

37
#34 - Francisco Dibar / frandibar

01/07/2011 at 12:06AM

37
#35 - drio / drio

01/10/2011 at 12:58PM

38
#36 - Henrik Nyh / henrik

12/31/2010 at 09:46AM

39
#37 - Thedward the Edward / thedward

12/31/2010 at 09:53PM

40
#38 - Ricardo Sisnett / mrjackinc

01/02/2011 at 05:55AM

40
#39 - mnx / mnxx

12/04/2013 at 10:21PM

42
#40 - James / Dronak

08/29/2013 at 11:35PM

49
#41 - Alain Gilbert / alain_gilbert

12/31/2010 at 06:04PM

55
#42 - Eike Schulte / eikeschulte

12/31/2010 at 03:38PM

65
#43 - Mathias Bynens  / mathias

04/08/2011 at 09:36AM

79
#44 - Guillaume Bonnoron / gbonnoron

12/31/2010 at 11:00AM

88
#45 - Ujjwol Lamichhane / Ujjwol

12/31/2010 at 10:09AM

215
#46 - 無ん垢の叫び / john_ababa

02/23/2012 at 05:17PM