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

129 active golfers, 674 entries

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

03/05/2020 at 01:34AM

31
#>16 - countime / @countime1

03/05/2020 at 01:20AM

33
#>24 - countime / @countime1

03/05/2020 at 01:17AM

34
#>30 - countime / @countime1

03/05/2020 at 01:15AM

37
#>37 - countime / @countime1

03/05/2020 at 01:11AM

39
#>44 - countime / @countime1

03/05/2020 at 01:04AM

40
#>46 - countime / @countime1

03/05/2020 at 01:02AM

45
#>54 - countime / @countime1

03/05/2020 at 12:49AM

46
#>60 - countime / @countime1

03/04/2020 at 09:05AM

46
#>60 - countime / @countime1

03/04/2020 at 09:29AM

56
#>89 - countime / @countime1

03/04/2020 at 09:01AM

57
#>94 - countime / @countime1

03/04/2020 at 08:51AM

61
#>100 - countime / @countime1

03/04/2020 at 08:58AM