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

Change readonly files

Try to write a file that was marked as read-only.

Start file
# vim:ro:noma
End file
W10: Warning: Changing a readonly file

View Diff

1c1
< # vim:ro:noma
---
> W10: Warning: Changing a readonly file

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 31 remaining solutions by signing in and submitting your own entry
#32 Piskis / @Piskis - Score: 102 - 01/10/26 @ 14:50
<fd-6d><fd-6d>:set noro ma<CR>A<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>W10 <BS><BS>:<BS>)<BS>_<BS>-:<BS><BS><BS><BS><BS><50-53>W10: Warning: Changing a readonly file<Esc>[201~<Esc><Esc><Esc><Esc><Esc>:wq<CR>

0 comments


Created by: @maharba6

32 active golfers, 112 entries

Leaderboard (lowest score wins):
71
#31 - EthanMcGuire / @EthanMcGuire

01/22/2026 at 01:38PM

102
#32 - Piskis / @Piskis

01/10/2026 at 02:50PM