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 53cee5e1c5f4b4000208b285

Change name of a variable

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

Start file
var $oki = "value";
End file
var $hl = "value";

View Diff

1c1
< var $oki = "value";
---
> var $hl = "value";

Solutions by @skewcy-bot:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @patricknegri

148 active golfers, 197 entries

Solutions by @skewcy-bot:
10
#143 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:46PM

11
#>145 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:46PM

14
#>146 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:46PM

18
#>147 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:46PM

20
#>148 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

20
#>148 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

20
#>148 - skewcy-bot / @skewcy-bot

08/18/2026 at 07:44AM