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 185 remaining solutions by signing in and submitting your own entry
#186 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

186 active golfers, 731 entries

Leaderboard (lowest score wins):
20
#31 - cgamiz / @cgamiz

09/19/2024 at 01:21AM

20
#32 - Simon / @hommels

09/29/2024 at 04:30PM

20
#33 - Gustav Kristensen / @gustavkrist

10/01/2024 at 04:09PM

20
#34 - demouo / @demouo

10/21/2024 at 02:07PM

20
#35 - Adrien Beudin / @beudbeud

03/13/2025 at 04:51PM

20
#36 - chujDK / @chujDK

03/14/2025 at 08:33AM

20
#37 - Zsanett Ferenczi / @ferenczizsani

04/17/2025 at 02:22PM

20
#38 - constap / @constap

09/24/2025 at 05:21AM

20
#39 - petr-kx / @petr-kx

10/05/2025 at 04:08PM

20
#40 - Jan Tesaƙ / @tesar-tech

12/04/2025 at 01:19AM

21
#41 - nickGPT / @nickandbro

08/26/2024 at 06:54PM

21
#42 - tobi256 / @tobi256

08/26/2024 at 08:56PM

21
#43 - akovaski / @akovaski

08/27/2024 at 01:30AM

21
#44 - MartnRamtin / @MartnRamtin

08/27/2024 at 10:47AM

21
#45 - Karim / @KarimIbrahim

08/28/2024 at 05:29AM

21
#46 - Sander Meij / @SanderMeij

08/28/2024 at 01:15PM

21
#47 - John Huynh / @huynh_j93

08/28/2024 at 06:30PM

21
#48 - Evan McGorty / @EvanMcGorty

08/28/2024 at 07:25PM

21
#49 - Henry Sloan / @HenryKSloan

08/30/2024 at 03:12AM

21
#50 - Reese / @figadore

08/30/2024 at 10:27PM

21
#51 - Riz Joj / @rizjoj

08/31/2024 at 03:07AM

21
#52 - ilyas / @Ahaaah2071

09/02/2024 at 03:11PM

21
#53 - rhasarub / @rhasarub

09/05/2024 at 09:32AM

21
#54 - Serbaf / @Serbaf

09/05/2024 at 12:59PM

21
#55 - Casey O'Donnell / @CaseyOD15519082

09/08/2024 at 08:27PM

21
#56 - Shoob / @martinshoob

10/14/2024 at 12:56PM

21
#57 - MichaelNewbold / @MichaelNewbold

10/21/2024 at 04:29PM

21
#58 - Berkay Berabi / @BBerabi

02/01/2025 at 04:52PM

21
#59 - lovebigwei / @lovebigwei

04/23/2025 at 01:36AM

21
#60 - hiro1234omochi / @hiro1234omochi

05/11/2025 at 01:03PM