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

1079 active golfers, 3165 entries

Leaderboard (lowest score wins):
17
#811 - Jacob / @jayekub

03/23/2014 at 12:21AM

17
#812 - Chad / @chadskeeters

04/04/2014 at 01:32PM

17
#813 - senbong / @senbong87

04/05/2014 at 03:34AM

17
#814 - Peter Strawson / @PeterStrawson

04/09/2014 at 02:44AM

17
#815 - Nate R / @80vs90

04/09/2014 at 01:41PM

17
#816 - Endir / @Endir2

04/17/2014 at 03:22PM

17
#817 - freehaha / @freehaha

04/29/2014 at 09:15AM

17
#818 - Solar Powered Robot / @moskrin

05/01/2014 at 06:46PM

17
#819 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:20AM

17
#820 - stephencheng / @stephencheng

05/06/2014 at 08:43AM

17
#821 - CJ Avilla / @cjav_dev

05/11/2014 at 04:04AM

17
#822 - Chris Davison / @davisonnn

05/25/2014 at 07:58PM

17
#823 - Atum Tal / @AtumTal

05/30/2014 at 01:49AM

17
#824 - Jake Eaton / @Jake__Eaton

06/01/2014 at 05:37AM

17
#825 - Pablo Acuña R. / @pabloacunar

06/22/2014 at 11:55PM

17
#826 - Tim Habermaas / @timhabermaas

06/24/2014 at 08:35PM

17
#827 - Brian / @wyantb_reader

06/26/2014 at 02:01AM

17
#828 - blamitter ✏️ / @blamitter

06/27/2014 at 10:08PM

17
#829 - David Hume / @djh95

07/07/2014 at 09:45AM

17
#830 - Michi Loro / @michiloro

07/08/2014 at 08:06AM

17
#831 - Laura Halla / @laura_halla

07/08/2014 at 08:22PM

17
#832 - Jimmy McRascal / @JimmyMcRascal

07/10/2014 at 01:50AM

17
#833 - starrynte / @starrynte

07/11/2014 at 06:13PM

17
#834 - yamasita taisuke / @yaasita

07/12/2014 at 04:38AM

17
#835 - Haoxuan Yue / @yuehaoxuanar

07/17/2014 at 03:37AM

17
#836 - Remi Bernotavicius / @bobbobbio

07/18/2014 at 03:23AM

17
#837 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 03:24AM

17
#838 - Mohamed Bassem / @MohamedBassem

08/06/2014 at 10:22AM

17
#839 - Bednarik Boldizsar / @bboldi

08/06/2014 at 07:17PM

17
#840 - Daniel Low / @deniallow

08/07/2014 at 11:30PM