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

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

155 active golfers, 879 entries

Solutions by @Xor547:
33
#34 - Xor547 / @Xor547

02/16/2020 at 12:17PM

34
#>42 - Xor547 / @Xor547

02/16/2020 at 12:15PM

38
#>53 - Xor547 / @Xor547

02/16/2020 at 12:13PM

39
#>58 - Xor547 / @Xor547

02/16/2020 at 12:11PM

41
#>62 - Xor547 / @Xor547

02/16/2020 at 12:08PM

43
#>66 - Xor547 / @Xor547

02/16/2020 at 12:06PM

44
#>69 - Xor547 / @Xor547

02/16/2020 at 12:05PM

47
#>90 - Xor547 / @Xor547

02/16/2020 at 12:04PM

48
#>95 - Xor547 / @Xor547

02/16/2020 at 11:38AM

48
#>95 - Xor547 / @Xor547

02/16/2020 at 11:53AM

49
#>99 - Xor547 / @Xor547

02/16/2020 at 11:35AM

49
#>99 - Xor547 / @Xor547

02/16/2020 at 11:37AM

50
#>100 - Xor547 / @Xor547

02/16/2020 at 11:33AM

57
#>118 - Xor547 / @Xor547

02/16/2020 at 11:32AM

58
#>119 - Xor547 / @Xor547

02/09/2020 at 04:50PM

59
#>123 - Xor547 / @Xor547

02/09/2020 at 04:49PM

72
#>134 - Xor547 / @Xor547

02/09/2020 at 04:48PM

96
#>144 - Xor547 / @Xor547

02/09/2020 at 04:46PM

110
#>145 - Xor547 / @Xor547

02/09/2020 at 04:45PM