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

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

129 active golfers, 674 entries

Solutions by @lamtt77:
30
#12 - lamtt77 / @lamtt77

10/10/2020 at 08:09AM

31
#>18 - lamtt77 / @lamtt77

10/10/2020 at 08:07AM

33
#>25 - lamtt77 / @lamtt77

10/10/2020 at 08:03AM

34
#>32 - lamtt77 / @lamtt77

10/10/2020 at 08:00AM

36
#>37 - lamtt77 / @lamtt77

10/10/2020 at 07:17AM

38
#>39 - lamtt77 / @lamtt77

10/10/2020 at 07:15AM

39
#>45 - lamtt77 / @lamtt77

10/10/2020 at 07:07AM

40
#>46 - lamtt77 / @lamtt77

10/10/2020 at 07:04AM

41
#>48 - lamtt77 / @lamtt77

10/10/2020 at 07:01AM

42
#>48 - lamtt77 / @lamtt77

10/10/2020 at 06:58AM

43
#>51 - lamtt77 / @lamtt77

10/10/2020 at 06:56AM

44
#>52 - lamtt77 / @lamtt77

10/10/2020 at 06:53AM

45
#>59 - lamtt77 / @lamtt77

10/10/2020 at 06:46AM

46
#>70 - lamtt77 / @lamtt77

10/10/2020 at 06:41AM

47
#>73 - lamtt77 / @lamtt77

10/10/2020 at 06:19AM

48
#>76 - lamtt77 / @lamtt77

10/10/2020 at 06:15AM