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 @nicosierra84:

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

1037 active golfers, 2996 entries

Solutions by @nicosierra84:
15
#477 - nicosierra / @nicosierra84

01/11/2020 at 03:21PM

16
#>631 - nicosierra / @nicosierra84

01/11/2020 at 03:19PM

17
#>907 - nicosierra / @nicosierra84

01/11/2020 at 03:18PM

18
#>944 - nicosierra / @nicosierra84

01/11/2020 at 03:16PM

31
#>1021 - nicosierra / @nicosierra84

01/11/2020 at 03:13PM