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

Flip All Bits

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

Start file
binary0 = 0b00000000_00001001_00010010_00011011
binary1 = 0b00100100_00101101_00110110_00111111
binary2 = 0b01000000_01001001_01010010_01011011
binary3 = 0b01100100_01101101_01110110_01111111
binary4 = 0b10000000_10001001_10010010_10011011
binary5 = 0b10100100_10101101_10110110_10111111
binary6 = 0b11000000_11001001_11010010_11011011
binary7 = 0b11100100_11101101_11110110_11111111
End file
binary0 = 0b11111111_11110110_11101101_11100100
binary1 = 0b11011011_11010010_11001001_11000000
binary2 = 0b10111111_10110110_10101101_10100100
binary3 = 0b10011011_10010010_10001001_10000000
binary4 = 0b01111111_01110110_01101101_01100100
binary5 = 0b01011011_01010010_01001001_01000000
binary6 = 0b00111111_00110110_00101101_00100100
binary7 = 0b00011011_00010010_00001001_00000000

View Diff

1,8c1,8
< binary0 = 0b00000000_00001001_00010010_00011011
< binary1 = 0b00100100_00101101_00110110_00111111
< binary2 = 0b01000000_01001001_01010010_01011011
< binary3 = 0b01100100_01101101_01110110_01111111
< binary4 = 0b10000000_10001001_10010010_10011011
< binary5 = 0b10100100_10101101_10110110_10111111
< binary6 = 0b11000000_11001001_11010010_11011011
< binary7 = 0b11100100_11101101_11110110_11111111
---
> binary0 = 0b11111111_11110110_11101101_11100100
> binary1 = 0b11011011_11010010_11001001_11000000
> binary2 = 0b10111111_10110110_10101101_10100100
> binary3 = 0b10011011_10010010_10001001_10000000
> binary4 = 0b01111111_01110110_01101101_01100100
> binary5 = 0b01011011_01010010_01001001_01000000
> binary6 = 0b00111111_00110110_00101101_00100100
> binary7 = 0b00011011_00010010_00001001_00000000

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 15 remaining solutions by signing in and submitting your own entry
#16 aReigoto / @aReigoto - Score: 108 - 04/10/26 @ 10:06
fb<Esc><Right><C-Q><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>:<Up><Down>/<BS>s/\^%<BS><BS>%V0/.<BS>a/g<CR>:<Up><Left><Left><Left><Left><Left><Right><BS>0<Right><Right><Left><Left><BS>1<Right><Right><BS>0<CR>:<Up><Left><Left><Left><Left><BS>a<Right><Right><BS>a<BS>1<CR>ZZ

0 comments


Created by: @maharba6

16 active golfers, 35 entries

Leaderboard (lowest score wins):
27
#1 - wpr__ / @wpr____

04/11/2026 at 05:49AM

29
#2 - ZEraX4 / @ZEraX4

04/03/2026 at 09:15PM

29
#3 - Hugh Davenport / @hughdavenport

04/05/2026 at 07:03AM

29
#4 - NonlinearFruit / @NonlinearFruit

04/09/2026 at 03:05AM

30
#5 - Andrew / @fr0streaper

04/03/2026 at 08:03PM

37
#6 - “Smylers” / @Smylers2

04/04/2026 at 08:30AM

42
#7 - Massimo Pavoni / @massimopavoni

04/08/2026 at 08:31AM

42
#8 - aaay-aaay / @aaay-aaay

04/09/2026 at 05:04PM

46
#9 - Rafe Murray / @rafe-murray

04/04/2026 at 04:40AM

46
#10 - Andy Balaam / @andybalaam

04/09/2026 at 04:15PM

47
#11 - qoober1 / @qoober1

04/04/2026 at 12:18PM

55
#12 - gowoodturner / @gowoodturner

04/05/2026 at 10:47PM

55
#13 - Lorenzo Torri / @lorenzotorri

04/09/2026 at 06:20AM

64
#14 - maharba6 / @maharba6

04/03/2026 at 12:57AM

71
#15 - skywalkerwhack / @skywalkerwhack

04/09/2026 at 01:06PM

108
#16 - aReigoto / @aReigoto

04/10/2026 at 10:06AM