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):
17
#691 - curist / @curist

01/16/2014 at 02:58AM

17
#692 - Andreas Källberg / @Anka213

01/16/2014 at 08:49PM

17
#693 - Benjamin Glassman / @squizztoupe

01/19/2014 at 10:23PM

17
#694 - flembo's dad / @Lspacewalker

01/24/2014 at 03:08PM

17
#695 - Mark Wart / @2mando

01/28/2014 at 11:04AM

17
#696 - Almog / @almog

01/28/2014 at 01:15PM

17
#697 - Amir Kremer / @AmirKremer

01/28/2014 at 01:16PM

17
#698 - Chase Lambert / @chasediscs

01/29/2014 at 12:13AM

17
#699 - KR / @ClubPersh

01/29/2014 at 01:20AM

17
#700 - Chris Ciulla / @chris_ciulla

01/29/2014 at 03:08AM

17
#701 - Jay R Bolton / @the_swerve

01/29/2014 at 03:21AM

17
#702 - Trevor / @bebopninja

01/29/2014 at 01:09PM

17
#703 - Andrew Clissold / @aclissold

01/30/2014 at 01:34PM

17
#704 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:48PM

17
#705 - Aurélien Vallée / @aurelienvallee

01/31/2014 at 12:58PM

17
#706 - jimauthors / @jimauthors

02/01/2014 at 12:06AM

17
#707 - Olivier Parent / @oliparcol

02/02/2014 at 04:05PM

17
#708 - Shadow Fiend / @Qumidium

02/02/2014 at 04:37PM

17
#709 - Amy Lim / @chasingkytes

02/03/2014 at 12:07AM

17
#710 - freestlr / @freestlr

02/03/2014 at 08:53AM

17
#711 - Rustam A. Gasanov / @rustamagasanov

02/03/2014 at 06:30PM

17
#712 - Lance B / @HeyItsLanceB

02/03/2014 at 11:06PM

17
#713 - Kevin Thompson / @kevinthompson

02/05/2014 at 06:42PM

17
#714 - Patrick Oscity / @der_padde

02/10/2014 at 12:02AM

17
#715 - Михайлов Борис / @kagux

02/24/2014 at 10:06AM

17
#716 - shinokada / @shinokada

02/26/2014 at 12:34PM

17
#717 - Steven Wiggins / @StevenWiggins

02/27/2014 at 04:31PM

17
#718 - Ernest Walzel / @ErnestWalzel

02/28/2014 at 08:38AM

17
#719 - Aaron Bohannon / @morefun2compute

02/28/2014 at 11:28PM

17
#720 - Ri / @riateche

03/01/2014 at 10:11PM