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 @yhetsugi:

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

129 active golfers, 674 entries

Solutions by @yhetsugi:
33
#24 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:48AM

34
#>30 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:45AM

38
#>39 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:39AM

39
#>44 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:17AM

40
#>46 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:14AM

42
#>48 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:11AM

44
#>52 - yhetsugiHMC / @yhetsugi

02/19/2020 at 02:03AM

47
#>71 - yhetsugiHMC / @yhetsugi

02/19/2020 at 01:52AM

48
#>76 - yhetsugiHMC / @yhetsugi

02/19/2020 at 01:48AM

51
#>80 - yhetsugiHMC / @yhetsugi

02/19/2020 at 01:46AM

54
#>86 - yhetsugiHMC / @yhetsugi

02/19/2020 at 01:27AM

67
#>106 - yhetsugiHMC / @yhetsugi

02/19/2020 at 01:17AM

277
#>129 - yhetsugiHMC / @yhetsugi

02/03/2020 at 01:00AM