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

964 active golfers, 2770 entries

Leaderboard (lowest score wins):
14
#241 - swarkEafs / @EafsSwark

08/13/2016 at 08:54PM

14
#242 - jdupont655 / @jdupont655

09/02/2016 at 10:57AM

14
#243 - Stephen Aument / @saument

09/03/2016 at 04:48AM

14
#244 - hor1ace / @hor3ace

09/08/2016 at 03:09PM

14
#245 - 알카포 / @alkpo12

09/10/2016 at 09:10AM

14
#246 - loki2441 / @loki2441

09/10/2016 at 09:23PM

14
#247 - Rasmus / @SBareSSomErMig

09/16/2016 at 09:15PM

14
#248 - Nico / @_Nico_Caro

09/30/2016 at 03:07AM

14
#249 - poke / @useraaaaaaaaaaf

10/05/2016 at 02:30PM

14
#250 - Stoyko Stanchev / @stoykostanchev

10/11/2016 at 11:52PM

14
#251 - trx / @trxdbg

10/12/2016 at 06:50AM

14
#252 - Andrii Maksai / @AMaksai

10/12/2016 at 08:39PM

14
#253 - John Barbero Unenge / @JBarberU

11/18/2016 at 01:38PM

14
#254 - Wessel Sinnema / @wsinnema

11/27/2016 at 04:52PM

14
#255 - Pierre Maoui / @poupougnac

12/21/2016 at 12:57PM

14
#256 - Young Seok Tony Kim / @tonyapplekim

01/24/2017 at 04:45PM

14
#257 - Zhihong Liu / @pieapple03

02/12/2017 at 12:50PM

14
#258 - setNull / @dadaojiemo

02/22/2017 at 01:28AM

14
#259 - Alexander Bessonov / @nonsleepr

03/14/2017 at 10:28PM

14
#260 - Daniel Hjelm / @dhjelm

03/15/2017 at 10:48AM

14
#261 - Ilya Shakirov / @aelaau

03/20/2017 at 02:32PM

14
#262 - Andreas Anderbach / @anderbacha

03/21/2017 at 12:00PM

14
#263 - Daniel / @Daniel00288663

03/21/2017 at 12:14PM

14
#264 - Nguyen Ngoc Trung / @trunga0

04/19/2017 at 09:53AM

14
#265 - 梧桐王子 / @WutongYujie

04/26/2017 at 03:56AM

14
#266 - Remus Dalrymple / @bornintheflames

05/06/2017 at 11:41PM

14
#267 - Chris Robertson / @chrisxrobertson

05/08/2017 at 09:32AM

14
#268 - Melvin Cheung / @MelvinCheung

05/25/2017 at 04:44PM

14
#269 - Jeff Kelly / @cheibriados

06/03/2017 at 06:38AM

14
#270 - Carl Egbert / @CarlOEgbert

06/09/2017 at 10:20PM