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

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

142 active golfers, 781 entries

Solutions by @raysden:
41
#55 - Ray Dennis / @raysden

12/24/2020 at 09:29PM

43
#>58 - Ray Dennis / @raysden

12/24/2020 at 09:28PM

44
#>60 - Ray Dennis / @raysden

12/24/2020 at 09:14PM

45
#>67 - Ray Dennis / @raysden

12/24/2020 at 09:07PM

45
#>67 - Ray Dennis / @raysden

12/24/2020 at 09:10PM

46
#>79 - Ray Dennis / @raysden

12/24/2020 at 09:05PM

47
#>83 - Ray Dennis / @raysden

12/24/2020 at 09:03PM

47
#>83 - Ray Dennis / @raysden

12/24/2020 at 09:04PM

48
#>86 - Ray Dennis / @raysden

12/24/2020 at 05:18PM

49
#>89 - Ray Dennis / @raysden

12/24/2020 at 05:13PM

50
#>90 - Ray Dennis / @raysden

12/24/2020 at 05:11PM

51
#>93 - Ray Dennis / @raysden

12/24/2020 at 05:08PM

53
#>95 - Ray Dennis / @raysden

12/24/2020 at 05:01PM

66
#>119 - Ray Dennis / @raysden

12/24/2020 at 03:08PM