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

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

146 active golfers, 819 entries

Solutions by @chocola81394123:
31
#24 - chocolate / @chocola81394123

12/01/2020 at 09:49AM

33
#>32 - chocolate / @chocola81394123

12/01/2020 at 09:48AM

34
#>41 - chocolate / @chocola81394123

12/01/2020 at 09:45AM

37
#>44 - chocolate / @chocola81394123

12/01/2020 at 09:36AM

39
#>54 - chocolate / @chocola81394123

12/01/2020 at 09:34AM

40
#>55 - chocolate / @chocola81394123

12/01/2020 at 09:13AM

41
#>58 - chocolate / @chocola81394123

12/01/2020 at 03:29AM

43
#>62 - chocolate / @chocola81394123

12/01/2020 at 03:28AM

44
#>64 - chocolate / @chocola81394123

12/01/2020 at 03:27AM

45
#>71 - chocolate / @chocola81394123

12/01/2020 at 03:25AM

46
#>83 - chocolate / @chocola81394123

12/01/2020 at 03:23AM

47
#>87 - chocolate / @chocola81394123

12/01/2020 at 01:53AM