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

Find anomalies

There is one special character per line

Start file
print("OPQOPQOPQOPQOPQOPQOPQOPQOPQOPQOPQOPQ0PQOPQOPQOPQ")
print("123123123123123123l23123123123123123123123123123")
print("hijkhijkhijkhijkhijkhijkhijkhijkhijkhijkhijkһijk")
print("klmnkImnklmnklmnklmnklmnklmnklmnklmnklmnklmnklmn")
print("2342342342342342342342Ʒ4234234234234234234234234")
print("ijkijkijkijkijkijkijkijkijkijkijkijkijκijkijkijk")

# vim:ft=python
End file
print("OPQOPQOPQOPQOPQOPQOPQOPQOPQOPQOPQOPQ0PQOPQOPQOPQ")
print("                                    ^           ")
print("123123123123123123l23123123123123123123123123123")
print("                  ^                             ")
print("hijkhijkhijkhijkhijkhijkhijkhijkhijkhijkhijkһijk")
print("                                            ^   ")
print("klmnkImnklmnklmnklmnklmnklmnklmnklmnklmnklmnklmn")
print("     ^                                          ")
print("2342342342342342342342Ʒ4234234234234234234234234")
print("                      ^                         ")
print("ijkijkijkijkijkijkijkijkijkijkijkijkijκijkijkijk")
print("                                      ^         ")

# vim:ft=python

View Diff

1a2
> print("                                    ^           ")
2a4
> print("                  ^                             ")
3a6
> print("                                            ^   ")
4a8
> print("     ^                                          ")
5a10
> print("                      ^                         ")
6a12
> print("                                      ^         ")

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 33 remaining solutions by signing in and submitting your own entry
#34 Kenneth Seet / @itstrueitstrueitsrealitsreal - Score: 418 - 05/06/24 @ 07:54
koiprint<BS><BS><BS><BS><BS><BS>ptint<BS><BS><BS><BS><BS>print <BS>("                                      <BS><BS>^           ")<Esc>joprint("                    <BS><BS>^                             ")<Esc>joprint("                                             <BS>^   ")<Esc>joprint("     &<BS>^                                          ")<Esc>joprint("                      ^                         ")j<BS><Esc>joprint <BS>("                                      ^         ")<Esc>kkkkkkkkkkl<Esc><Esc><Esc>:wq<CR>

0 comments


Created by: @maharba6

34 active golfers, 125 entries

Leaderboard (lowest score wins):
85
#31 - Bart Hageman / @BartHageman

09/09/2024 at 10:21PM

87
#32 - VKWHM / @VKWHM

08/23/2024 at 05:02PM

294
#33 - jdascenzio / @jdascenzio

05/07/2024 at 02:24PM

418
#34 - Kenneth Seet / @itstrueitstrueitsrealitsreal

05/06/2024 at 07:54AM