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

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

129 active golfers, 674 entries

Solutions by @BnnGolfer:
34
#32 - BnnGolfer / @BnnGolfer

03/21/2020 at 12:12AM

38
#>39 - BnnGolfer / @BnnGolfer

03/20/2020 at 11:34PM

39
#>45 - BnnGolfer / @BnnGolfer

03/20/2020 at 11:07PM

43
#>49 - BnnGolfer / @BnnGolfer

03/20/2020 at 11:04PM

44
#>52 - BnnGolfer / @BnnGolfer

03/20/2020 at 10:25PM

45
#>54 - BnnGolfer / @BnnGolfer

03/20/2020 at 09:33PM

47
#>72 - BnnGolfer / @BnnGolfer

03/20/2020 at 09:24PM