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

129 active golfers, 674 entries

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

05/13/2020 at 02:35PM

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

05/13/2020 at 02:34PM

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

05/13/2020 at 02:32PM

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

05/13/2020 at 02:31PM

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

05/13/2020 at 02:28PM

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

05/13/2020 at 02:26PM

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

05/13/2020 at 02:22PM

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

05/13/2020 at 02:20PM

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

05/13/2020 at 02:19PM

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

05/13/2020 at 02:18PM

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

05/13/2020 at 02:15PM

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

05/13/2020 at 02:16PM

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

05/13/2020 at 02:13PM

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

05/13/2020 at 02:11PM

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

05/13/2020 at 02:09PM

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

05/13/2020 at 02:07PM

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

05/13/2020 at 02:04PM

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

05/13/2020 at 01:59PM