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

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

155 active golfers, 879 entries

Solutions by @serycjon:
30
#11 - Jonáš Šerých / @serycjon

05/13/2020 at 02:35PM

31
#>25 - Jonáš Šerých / @serycjon

05/13/2020 at 02:34PM

33
#>37 - Jonáš Šerých / @serycjon

05/13/2020 at 02:32PM

34
#>44 - Jonáš Šerých / @serycjon

05/13/2020 at 02:31PM

35
#>47 - Jonáš Šerých / @serycjon

05/13/2020 at 02:28PM

38
#>53 - Jonáš Šerých / @serycjon

05/13/2020 at 02:26PM

39
#>59 - Jonáš Šerých / @serycjon

05/13/2020 at 02:22PM

40
#>60 - Jonáš Šerých / @serycjon

05/13/2020 at 02:20PM

41
#>62 - Jonáš Šerých / @serycjon

05/13/2020 at 02:19PM

43
#>67 - Jonáš Šerých / @serycjon

05/13/2020 at 02:18PM

44
#>69 - Jonáš Šerých / @serycjon

05/13/2020 at 02:15PM

44
#>69 - Jonáš Šerých / @serycjon

05/13/2020 at 02:16PM

45
#>74 - Jonáš Šerých / @serycjon

05/13/2020 at 02:13PM

46
#>83 - Jonáš Šerých / @serycjon

05/13/2020 at 02:11PM

47
#>92 - Jonáš Šerých / @serycjon

05/13/2020 at 02:09PM

49
#>99 - Jonáš Šerých / @serycjon

05/13/2020 at 02:07PM

50
#>100 - Jonáš Šerých / @serycjon

05/13/2020 at 02:04PM

53
#>106 - Jonáš Šerých / @serycjon

05/13/2020 at 01:59PM