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 5e319945224f4100097c9609

Aliases for cd

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

Start file
alias c.='cd ..'
End file
alias c.='cd ..'
alias c..='cd ../..'
alias c...='cd ../../..'
alias c....='cd ../../../..'
alias c.....='cd ../../../../..'

alias c1='cd ..'
alias c2='cd ../..'
alias c3='cd ../../..'
alias c4='cd ../../../..'
alias c5='cd ../../../../..'

View Diff

1a2,11
> alias c..='cd ../..'
> alias c...='cd ../../..'
> alias c....='cd ../../../..'
> alias c.....='cd ../../../../..'
> 
> alias c1='cd ..'
> alias c2='cd ../..'
> alias c3='cd ../../..'
> alias c4='cd ../../../..'
> alias c5='cd ../../../../..'

Solutions by @AyayaMoh:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @rax0m

155 active golfers, 879 entries

Solutions by @AyayaMoh:
30
#18 - moh ayaya / @AyayaMoh

08/30/2023 at 05:08PM

31
#>31 - moh ayaya / @AyayaMoh

08/30/2023 at 05:03PM

33
#>37 - moh ayaya / @AyayaMoh

08/30/2023 at 04:59PM

34
#>46 - moh ayaya / @AyayaMoh

08/30/2023 at 04:56PM

37
#>51 - moh ayaya / @AyayaMoh

08/30/2023 at 04:48PM

38
#>53 - moh ayaya / @AyayaMoh

08/30/2023 at 04:45PM

39
#>59 - moh ayaya / @AyayaMoh

08/30/2023 at 04:40PM

40
#>61 - moh ayaya / @AyayaMoh

08/30/2023 at 04:38PM

42
#>65 - moh ayaya / @AyayaMoh

08/30/2023 at 04:35PM

44
#>69 - moh ayaya / @AyayaMoh

11/11/2020 at 06:44PM

44
#>69 - moh ayaya / @AyayaMoh

11/11/2020 at 07:12PM

52
#>104 - moh ayaya / @AyayaMoh

11/11/2020 at 06:06PM

69
#>133 - moh ayaya / @AyayaMoh

11/10/2020 at 07:27PM