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

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

128 active golfers, 660 entries

Solutions by @awareofnow:
34
#30 - Adam Hartz / @awareofnow

03/06/2020 at 03:54AM

35
#>34 - Adam Hartz / @awareofnow

03/06/2020 at 03:48AM

37
#>36 - Adam Hartz / @awareofnow

03/06/2020 at 03:41AM

39
#>43 - Adam Hartz / @awareofnow

03/06/2020 at 03:33AM

40
#>45 - Adam Hartz / @awareofnow

03/06/2020 at 03:28AM

44
#>51 - Adam Hartz / @awareofnow

03/06/2020 at 03:17AM

45
#>53 - Adam Hartz / @awareofnow

03/06/2020 at 02:53AM

46
#>59 - Adam Hartz / @awareofnow

03/06/2020 at 02:48AM

47
#>70 - Adam Hartz / @awareofnow

03/06/2020 at 02:34AM

49
#>77 - Adam Hartz / @awareofnow

03/06/2020 at 02:18AM

60
#>99 - Adam Hartz / @awareofnow

03/06/2020 at 02:13AM