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

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

150 active golfers, 849 entries

Solutions by @countime1:
30
#2 - countime / @countime1

03/05/2020 at 01:34AM

31
#>22 - countime / @countime1

03/05/2020 at 01:20AM

33
#>34 - countime / @countime1

03/05/2020 at 01:17AM

34
#>40 - countime / @countime1

03/05/2020 at 01:15AM

37
#>47 - countime / @countime1

03/05/2020 at 01:11AM

39
#>56 - countime / @countime1

03/05/2020 at 01:04AM

40
#>58 - countime / @countime1

03/05/2020 at 01:02AM

45
#>69 - countime / @countime1

03/05/2020 at 12:49AM

46
#>76 - countime / @countime1

03/04/2020 at 09:05AM

46
#>76 - countime / @countime1

03/04/2020 at 09:29AM

56
#>109 - countime / @countime1

03/04/2020 at 09:01AM

57
#>114 - countime / @countime1

03/04/2020 at 08:51AM

61
#>121 - countime / @countime1

03/04/2020 at 08:58AM