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 9v0066cbb6a1000000000345

Remove adjacent duplicates

Try to find a way to remove adjacent duplicate letters.

Start file
a a d d j a c c c c e n t t t t d u p p p l i i i c a a t t e e w o r d d d d s s
End file
a d j a c e n t d u p l i c a t e w o r d s

View Diff

1c1
< a a d d j a c c c c e n t t t t d u p p p l i i i c a a t t e e w o r d d d d s s
---
> a d j a c e n t d u p l i c a t e w o r d s

Solutions by @martinshoob:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

162 active golfers, 646 entries

Solutions by @martinshoob:
21
#51 - Shoob / @martinshoob

10/14/2024 at 12:56PM

22
#>66 - Shoob / @martinshoob

10/14/2024 at 12:56PM

23
#>74 - Shoob / @martinshoob

10/14/2024 at 12:55PM

35
#>106 - Shoob / @martinshoob

10/14/2024 at 12:54PM

36
#>111 - Shoob / @martinshoob

10/14/2024 at 12:53PM

37
#>112 - Shoob / @martinshoob

10/14/2024 at 12:52PM

38
#>122 - Shoob / @martinshoob

10/14/2024 at 12:49PM

41
#>130 - Shoob / @martinshoob

10/14/2024 at 12:46PM

44
#>137 - Shoob / @martinshoob

10/14/2024 at 12:42PM

45
#>138 - Shoob / @martinshoob

10/14/2024 at 12:40PM

49
#>149 - Shoob / @martinshoob

10/14/2024 at 12:38PM

50
#>149 - Shoob / @martinshoob

10/14/2024 at 12:36PM

90
#>158 - Shoob / @martinshoob

10/14/2024 at 12:36PM