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

129 active golfers, 674 entries

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

02/16/2020 at 12:17PM

34
#>30 - Xor547 / @Xor547

02/16/2020 at 12:15PM

38
#>39 - Xor547 / @Xor547

02/16/2020 at 12:13PM

39
#>44 - Xor547 / @Xor547

02/16/2020 at 12:11PM

41
#>47 - Xor547 / @Xor547

02/16/2020 at 12:08PM

43
#>49 - Xor547 / @Xor547

02/16/2020 at 12:06PM

44
#>52 - Xor547 / @Xor547

02/16/2020 at 12:05PM

47
#>71 - Xor547 / @Xor547

02/16/2020 at 12:04PM

48
#>76 - Xor547 / @Xor547

02/16/2020 at 11:38AM

48
#>76 - Xor547 / @Xor547

02/16/2020 at 11:53AM

49
#>78 - Xor547 / @Xor547

02/16/2020 at 11:35AM

49
#>78 - Xor547 / @Xor547

02/16/2020 at 11:37AM

50
#>79 - Xor547 / @Xor547

02/16/2020 at 11:33AM

57
#>94 - Xor547 / @Xor547

02/16/2020 at 11:32AM

58
#>95 - Xor547 / @Xor547

02/09/2020 at 04:50PM

59
#>98 - Xor547 / @Xor547

02/09/2020 at 04:49PM

72
#>109 - Xor547 / @Xor547

02/09/2020 at 04:48PM

96
#>119 - Xor547 / @Xor547

02/09/2020 at 04:46PM

110
#>120 - Xor547 / @Xor547

02/09/2020 at 04:45PM