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

155 active golfers, 879 entries

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

10/10/2020 at 08:09AM

31
#>26 - lamtt77 / @lamtt77

10/10/2020 at 08:07AM

33
#>37 - lamtt77 / @lamtt77

10/10/2020 at 08:03AM

34
#>44 - lamtt77 / @lamtt77

10/10/2020 at 08:00AM

36
#>49 - lamtt77 / @lamtt77

10/10/2020 at 07:17AM

38
#>53 - lamtt77 / @lamtt77

10/10/2020 at 07:15AM

39
#>59 - lamtt77 / @lamtt77

10/10/2020 at 07:07AM

40
#>60 - lamtt77 / @lamtt77

10/10/2020 at 07:04AM

41
#>63 - lamtt77 / @lamtt77

10/10/2020 at 07:01AM

42
#>64 - lamtt77 / @lamtt77

10/10/2020 at 06:58AM

43
#>68 - lamtt77 / @lamtt77

10/10/2020 at 06:56AM

44
#>69 - lamtt77 / @lamtt77

10/10/2020 at 06:53AM

45
#>76 - lamtt77 / @lamtt77

10/10/2020 at 06:46AM

46
#>88 - lamtt77 / @lamtt77

10/10/2020 at 06:41AM

47
#>92 - lamtt77 / @lamtt77

10/10/2020 at 06:19AM

48
#>95 - lamtt77 / @lamtt77

10/10/2020 at 06:15AM