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):
16
#511 - Felipe Jaramillo F / @mrfelipe

04/02/2014 at 03:40AM

16
#512 - george.li / @goblin_george

04/19/2014 at 01:44PM

16
#513 - Richard Veneracion / @rveneracion

05/08/2014 at 03:29AM

16
#514 - Tom Cammann / @tea_sea

05/13/2014 at 12:07PM

16
#515 - Herr Oppermann / @HerrOppermann

06/16/2014 at 02:29PM

16
#516 - compiled wrong / @compiledwrong

06/17/2014 at 03:42AM

16
#517 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:33PM

16
#518 - glennphillips / @glennphillips

07/11/2014 at 06:11PM

16
#519 - 俊吉 / @datddffbyi

07/12/2014 at 03:14PM

16
#520 - PLS / @jaegd

08/03/2014 at 02:55AM

16
#521 - Daniel / @dazn159

08/15/2014 at 06:55PM

16
#522 - Bill Booth / @ohiopyle

08/19/2014 at 08:12AM

16
#523 - Vim Golfer / @golfing_vim

09/04/2014 at 03:40PM

16
#524 - Daniel Mita / @Mienaikage

09/08/2014 at 09:12AM

16
#525 - Jonas / @j0na3

09/12/2014 at 08:32PM

16
#526 - Noah Ruderman / @noahc66260

09/27/2014 at 09:52AM

16
#527 - Daniel Burnett / @mango_cheetah

10/10/2014 at 04:39PM

16
#528 - Sabiki94@ブルスクの人 / @_jptomoya

10/17/2014 at 01:46PM

16
#529 - Eduardo / @earada

10/22/2014 at 03:56PM

16
#530 - eBrnd / @eBrnd

11/02/2014 at 12:56PM

16
#531 - Keyboard Fire / @KeyboardFire

11/22/2014 at 02:39PM

16
#532 - Jake Worth / @jwworth

11/28/2014 at 06:00PM

16
#533 - Test User / @TestUserIgnore

12/04/2014 at 10:58PM

16
#534 - Steve Alison / @Steve_Alison

12/17/2014 at 09:38PM

16
#535 - Tamás Torba / @torbatamas

12/30/2014 at 07:59PM

16
#536 - Carlos A Henríquez Q / @lagunex

01/19/2015 at 01:50PM

16
#537 - Jonathan Martindell / @jonmartindell

02/13/2015 at 08:45PM

16
#538 - TheProgrammer971 / @tp971

03/14/2015 at 01:51AM

16
#539 - petec / @lepht

03/23/2015 at 11:13PM

16
#540 - Mariano Macchi / @mmacchif

03/29/2015 at 08:18PM