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 51f4a64c6813e30002000018

quotes inside quotes

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

Start file
This string contains a 'quoted' word.
This string contains 'two' quoted 'words.'
This 'string doesn't make things easy.'
End file
This string contains a "quoted" word.
This string contains "two" quoted "words."
This "string doesn't make things easy."

View Diff

1,3c1,3
< This string contains a 'quoted' word.
< This string contains 'two' quoted 'words.'
< This 'string doesn't make things easy.'
---
> This string contains a "quoted" word.
> This string contains "two" quoted "words."
> This "string doesn't make things easy."

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 950 remaining solutions by signing in and submitting your own entry
#951 mko_io / @mko_io - Score: 189 - 06/14/14 @ 16:10
f'cs'"f'<Right>cs'"f'S"jjujj<Esc><Esc>ulf'c"s"<C-O>'f'l<BS><BS><Right><Right><Right><Right><Right><Right>x<Right><BS><BS>"<Esc><Esc>jhhhhhhhhhS"uj<Esc><Esc>uf'Sujj<Esc><Esc>ulllllllllllllllllllllC<Esc>us"<Esc><Right><Right><Right><Right>s"<Right><Right><Right><Right><Right><Right><Right><Right>s"<BS><BS><Right><Left>s"<BS><BS><Esc><Esc><Right>s"<Right><Right><Right><Right><Right><Right><Right><BS>s<BS>S<BS>"<Down><BS>"<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>"<Esc><Esc>ZZ

0 comments


Created by: @GlobalMaquereau

951 active golfers, 2726 entries

Leaderboard (lowest score wins):
18
#841 - Matty Williams / @matty_jwilliams

08/27/2013 at 09:54AM

18
#842 - Dave Aitken / @actionshrimp

08/27/2013 at 07:17PM

18
#843 - Hachez Floran / @FloranHachez

09/02/2013 at 03:59PM

18
#844 - Andrew Crites / @ExplosionPills

09/11/2013 at 06:38PM

18
#845 - Marcin Katulski / @marcink79

09/26/2013 at 08:28AM

18
#846 - Michael Biebl / @michaelbiebl

09/28/2013 at 03:42PM

18
#847 - Lavkesh / @OloglogN

01/29/2014 at 12:33PM

18
#848 - Billy McCarthy / @reshippie

01/30/2014 at 01:37AM

18
#849 - Павел Игоревич / @VizierST

02/02/2014 at 02:04PM

18
#850 - ren / @wxoc

02/10/2014 at 07:47AM

18
#851 - Par Narvi / @ParNarvi

04/02/2014 at 02:43PM

18
#852 - Nic West / @west_nic

04/06/2014 at 03:52PM

18
#853 - Lorin Hochstein / @lhochstein

04/15/2014 at 09:52PM

18
#854 - Phil Pirozhkov / @philpirj

05/17/2014 at 01:43PM

18
#855 - João Carvalho / @joaoCarvas

07/11/2014 at 12:01PM

18
#856 - daveseibert / @daveseibert

08/02/2014 at 03:57AM

18
#857 - ЕвгенийВ / @imater

10/27/2014 at 12:10PM

18
#858 - Alex Serebryakov / @Doc_Livesey

12/03/2014 at 12:22PM

18
#859 - Lindsay Verola / @lindsayv34

01/23/2015 at 09:01PM

18
#860 - Peter Flockhart / @FreshPeter_

02/24/2015 at 12:57AM

18
#861 - Котов Роман / @Oxaide16

05/22/2015 at 10:36PM

18
#862 - Christopher Wells / @ExcaliburZero_Z

12/19/2015 at 08:03PM

18
#863 - Micha / @michman89

08/12/2016 at 09:57AM

18
#864 - Akilan Anbalagan / @akilananb

03/27/2018 at 09:32AM

18
#865 - Ian Webster / @iwebst

07/28/2018 at 06:58PM

18
#866 - adir ohayon / @AdirKip

01/07/2019 at 10:45PM

19
#867 - Romain Pomier / @RPomier

08/02/2013 at 08:13PM

19
#868 - Sheng / @shenghis

08/25/2013 at 07:45PM

19
#869 - Francesco Negri / @dhinus

09/17/2013 at 10:37AM

19
#870 - John Moon / @johnmoon6

11/21/2013 at 01:39PM