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

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

1078 active golfers, 3159 entries

Solutions by @nickandbro:
14
#367 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

15
#>513 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

16
#>665 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

17
#>945 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

18
#>979 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

19
#>1003 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

20
#>1007 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

21
#>1016 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

22
#>1033 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

23
#>1037 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

24
#>1043 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

25
#>1047 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

26
#>1049 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

27
#>1050 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

30
#>1057 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

31
#>1061 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

33
#>1065 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

34
#>1068 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

35
#>1069 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

39
#>1073 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

40
#>1074 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

43
#>1075 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

76
#>1076 - nickGPT / @nickandbro

08/28/2024 at 06:15PM

138
#>1076 - nickGPT / @nickandbro

08/28/2024 at 06:15PM