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

974 active golfers, 2799 entries

Leaderboard (lowest score wins):
33
#961 - Samir Sadek / @netsamir

07/21/2015 at 06:14AM

33
#962 - Vim Golfer / @VimGolfer6

07/22/2019 at 11:03AM

34
#963 - jmpak / @jmpak

08/07/2013 at 02:45PM

34
#964 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 10:22PM

35
#965 - Steven Schalhorn / @Unmensch

10/05/2013 at 12:34PM

39
#966 - Origen Theologian / @0rig3n

07/29/2013 at 09:05PM

39
#967 - Mohit Sharma / @m0hitsharma

12/29/2013 at 11:53PM

39
#968 - Matt Walsh / @wattmalsh

02/08/2017 at 07:53AM

39
#969 - gtgtgt02 / @gtgtgt02

04/01/2019 at 01:59PM

40
#970 - ow / @ow34480012

04/29/2019 at 07:35AM

43
#971 - BatAmar Battulga / @b_batamar

08/17/2013 at 09:18AM

76
#972 - Artur Chruszcz / @a_chru

09/14/2013 at 11:00AM

140
#973 - Alam / @aflmp_

06/12/2019 at 04:52AM

189
#974 - mko_io / @mko_io

06/14/2014 at 04:10PM