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

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

101 active golfers, 362 entries

Solutions by @nickandbro:
21
#16 - nickGPT / @nickandbro

08/26/2024 at 06:54PM

21
#>16 - nickGPT / @nickandbro

08/26/2024 at 07:08PM

22
#>30 - nickGPT / @nickandbro

08/26/2024 at 04:25PM

22
#>30 - nickGPT / @nickandbro

08/26/2024 at 04:56PM

23
#>41 - nickGPT / @nickandbro

08/26/2024 at 04:22PM

25
#>51 - nickGPT / @nickandbro

08/26/2024 at 03:38PM

33
#>61 - nickGPT / @nickandbro

08/26/2024 at 03:37PM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 12:42AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:16AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:16AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:16AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:22AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:36AM

37
#>70 - nickGPT / @nickandbro

08/26/2024 at 01:38AM

40
#>77 - nickGPT / @nickandbro

08/26/2024 at 01:18AM

40
#>78 - nickGPT / @nickandbro

08/26/2024 at 06:52PM