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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 170 remaining solutions by signing in and submitting your own entry
#171 Yawar / @mohdyawars - Score: 194 - 09/03/24 @ 04:51
<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>jjkkjhhhhhhhhhhhhhhllxljkjxhxhxlllllxxxxxxxllllhhhhxa<Esc>hs<Esc>uaa <Esc>lllllllllzxxxxxxlljjjhhhxllllllhxxxhxlllllhxxxxlllllxhxlllhxxllhllhxxlllllllllxxxxxhxllxxlhhhhhhhhhwwwwwwbbbbbbbbbbbbb:wq<CR>

0 comments


Created by: @maharba6

171 active golfers, 684 entries

Leaderboard (lowest score wins):
26
#91 - ingonerd / @ingonerd

09/02/2024 at 06:50AM

26
#92 - Maxime Delhaye / @friphazeph

03/28/2025 at 11:14AM

27
#93 - Felix Pankratz / @panki27

08/27/2024 at 07:17AM

27
#94 - Alex Weeren / @AlexWeeren

09/05/2024 at 06:14PM

27
#95 - mgh14 / @mgh14

09/09/2024 at 09:16PM

27
#96 - 好家伙! / @xdudna

05/29/2025 at 08:42AM

28
#97 - Simon Poirier / @simpoir

08/27/2024 at 01:42AM

29
#98 - Alexander Lazarov / @alexander-lazarov

09/03/2024 at 11:19AM

30
#99 - Sakal77 / @Sakal77

09/18/2024 at 08:29AM

31
#100 - Vishal Subramanyam / @VishalSubramanyam

08/31/2024 at 06:12PM

32
#101 - maharba6 / @maharba6

01/14/2025 at 10:12PM

32
#102 - Alex Clough / @CodingInRhythm

03/07/2026 at 03:12AM

33
#103 - Rehpotsirhc / @Rehpotsirhc-z

08/26/2024 at 02:37AM

33
#104 - ak@developer / @Ajay-056

09/15/2024 at 09:24AM

34
#105 - Kevin Cardona / @kevincardona

09/03/2024 at 06:46PM

34
#106 - Eran / @RedSponge

11/11/2024 at 02:36PM

34
#107 - jaunxter / @jaunxter

03/31/2025 at 11:32PM

35
#108 - Alex Khakhlyuk / @khakhlyuk

09/07/2024 at 04:30PM

35
#109 - MatFriend / @MatFriend

09/09/2024 at 11:47PM

35
#110 - Artur Sarlo / @artursarlo

09/27/2024 at 08:53PM

35
#111 - IroncladDev / @IroncladDev

10/09/2024 at 12:51PM

35
#112 - Sjur B. / @Apostrophel

05/28/2025 at 07:57PM

35
#113 - saito ren / @rennn-n

07/31/2025 at 01:19PM

36
#114 - 765859220 / @765859220

08/27/2024 at 06:43AM

36
#115 - Giacomo Sansone / @pcineverdies

09/01/2024 at 03:24PM

36
#116 - Stoyan Dimov / @stoyandimov

09/02/2024 at 01:22PM

37
#117 - Kaito Kikuchi / @chorkaichan

09/01/2024 at 01:03PM

37
#118 - efettf / @efettf

11/01/2024 at 07:01PM

37
#119 - k1mosabe / @k1mosabe

12/03/2024 at 12:29AM

37
#120 - lilfelix / @lilfelix

04/15/2025 at 08:41PM