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 by @dracyrys:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @GlobalMaquereau

1079 active golfers, 3165 entries

Solutions by @dracyrys:
14
#311 - Gitsnik / @dracyrys

04/26/2019 at 12:45PM

15
#>487 - Gitsnik / @dracyrys

04/26/2019 at 12:45PM

16
#>651 - Gitsnik / @dracyrys

04/26/2019 at 12:44PM

17
#>927 - Gitsnik / @dracyrys

04/26/2019 at 12:44PM

23
#>1038 - Gitsnik / @dracyrys

04/26/2019 at 12:43PM

24
#>1044 - Gitsnik / @dracyrys

04/26/2019 at 12:42PM

27
#>1050 - Gitsnik / @dracyrys

04/26/2019 at 12:41PM

29
#>1054 - Gitsnik / @dracyrys

04/26/2019 at 12:39PM