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

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

129 active golfers, 674 entries

Solutions by @speiszc:
31
#18 - speisz / @speiszc

08/31/2020 at 12:38PM

33
#>25 - speisz / @speiszc

08/31/2020 at 12:25PM

34
#>32 - speisz / @speiszc

08/31/2020 at 12:24PM

35
#>35 - speisz / @speiszc

08/31/2020 at 12:14PM

36
#>37 - speisz / @speiszc

08/30/2020 at 10:01PM

37
#>37 - speisz / @speiszc

08/30/2020 at 09:57PM

39
#>45 - speisz / @speiszc

08/30/2020 at 09:53PM

40
#>46 - speisz / @speiszc

08/30/2020 at 09:47PM

41
#>48 - speisz / @speiszc

08/30/2020 at 09:45PM

42
#>48 - speisz / @speiszc

08/30/2020 at 09:42PM

43
#>51 - speisz / @speiszc

08/31/2020 at 12:37PM

44
#>52 - speisz / @speiszc

08/30/2020 at 07:42PM

46
#>67 - speisz / @speiszc

06/30/2020 at 10:08PM

46
#>69 - speisz / @speiszc

08/29/2020 at 10:05PM