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

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

150 active golfers, 849 entries

Solutions by @hepebexe:
34
#44 - hepebexè / @hepebexe

11/15/2020 at 06:48PM

34
#>44 - hepebexè / @hepebexe

12/01/2020 at 06:08PM

35
#>45 - hepebexè / @hepebexe

11/15/2020 at 06:37PM

36
#>47 - hepebexè / @hepebexe

11/15/2020 at 06:28PM

38
#>51 - hepebexè / @hepebexe

11/15/2020 at 06:04PM

38
#>51 - hepebexè / @hepebexe

11/15/2020 at 06:15PM

39
#>57 - hepebexè / @hepebexe

11/15/2020 at 05:51PM

40
#>58 - hepebexè / @hepebexe

11/15/2020 at 05:37PM

41
#>61 - hepebexè / @hepebexe

11/15/2020 at 05:31PM

44
#>67 - hepebexè / @hepebexe

11/15/2020 at 05:04PM

45
#>74 - hepebexè / @hepebexe

11/15/2020 at 04:56PM

49
#>96 - hepebexè / @hepebexe

12/01/2020 at 05:25PM

50
#>97 - hepebexè / @hepebexe

11/15/2020 at 01:10PM