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
#61 - A. N. / @arez42

10/24/2013 at 11:40AM

14
#62 - Alexander Gyoshev / @alex_gyoshev

10/30/2013 at 01:05PM

14
#63 - Michael / @thatDeitch

10/31/2013 at 05:04AM

14
#64 - Balthamos / @balthamos89

11/02/2013 at 02:05AM

14
#65 - James Scriven / @JamesDScriven

11/03/2013 at 03:30PM

14
#66 - Nathan Wallace / @nathanmwallace

11/05/2013 at 06:26PM

14
#67 - Charles H. Leggett / @cleggett

11/05/2013 at 07:43PM

14
#68 - Jonathan Potter / @nTypeRed

11/11/2013 at 04:45AM

14
#69 - Cassiano Leal / @cassianoleal

11/21/2013 at 07:15PM

14
#70 - John Braxler / @braxler

11/22/2013 at 08:33PM

14
#71 - Nick Bakkegaard / @Bakkemand

11/26/2013 at 03:41PM

14
#72 - Casper Christensen / @Casper__C

11/26/2013 at 03:47PM

14
#73 - Sandeep Dhavale / @sandeep_dhavale

11/27/2013 at 12:29AM

14
#74 - Oskar Werkelin Ahlin / @osk_wa

12/03/2013 at 10:54PM

14
#75 - Charlene Tshos / @charlymul

12/05/2013 at 03:21PM

14
#76 - Tim Smart / @tim_smart

12/10/2013 at 12:57AM

14
#77 - Vernon Grimshaw / @Vernon_Grimshaw

12/12/2013 at 02:21PM

14
#78 - Rafael Rendon Pablo / @__rendon__

12/13/2013 at 08:37PM

14
#79 - Andrew O'Neill / @AndroidOatmeal

12/17/2013 at 04:40PM

14
#80 - Jacob Niehus / @wilywampa

12/18/2013 at 04:35AM

14
#81 - Augustin Trancart / @autra42

12/18/2013 at 05:00PM

14
#82 - Joshua Appelman / @JoshuaAppelman

12/20/2013 at 08:20PM

14
#83 - chilicuil / @chilicuil

12/27/2013 at 08:48AM

14
#84 - Rado Kirov / @radokirov

12/29/2013 at 07:02AM

14
#85 - Son of Bongo / @bpcode

01/04/2014 at 02:01PM

14
#86 - Guillaume Seren / @guillaumeseren

01/06/2014 at 12:47PM

14
#87 - oliver mueller / @marcontwit

01/07/2014 at 08:24PM

14
#88 - alex scott / @4l3xsc0tt

01/09/2014 at 01:46PM

14
#89 - Quasar Jarosz / @quasarj

01/10/2014 at 05:22AM

14
#90 - Sven Hedin / @HedinR7

01/11/2014 at 08:20PM