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

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

129 active golfers, 674 entries

Solutions by @Sakigw:
31
#14 - Saki Gw / @Sakigw

02/18/2020 at 08:36AM

33
#>21 - Saki Gw / @Sakigw

02/13/2020 at 10:56AM

33
#>21 - Saki Gw / @Sakigw

02/14/2020 at 10:50AM

33
#>23 - Saki Gw / @Sakigw

02/18/2020 at 08:13AM

34
#>26 - Saki Gw / @Sakigw

01/30/2020 at 10:52AM

34
#>27 - Saki Gw / @Sakigw

01/31/2020 at 11:53AM

35
#>34 - Saki Gw / @Sakigw

01/30/2020 at 10:23AM

35
#>34 - Saki Gw / @Sakigw

01/30/2020 at 10:47AM

36
#>35 - Saki Gw / @Sakigw

01/30/2020 at 09:42AM

36
#>35 - Saki Gw / @Sakigw

01/30/2020 at 09:51AM

36
#>35 - Saki Gw / @Sakigw

01/30/2020 at 10:45AM

37
#>37 - Saki Gw / @Sakigw

01/29/2020 at 10:46PM

38
#>37 - Saki Gw / @Sakigw

01/29/2020 at 05:16PM

71
#>109 - Saki Gw / @Sakigw

01/29/2020 at 03:16PM