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

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

128 active golfers, 660 entries

Solutions by @tefetic:
34
#26 - Tefe / @tefetic

01/30/2020 at 08:58PM

38
#>38 - Tefe / @tefetic

01/30/2020 at 08:56PM

39
#>39 - Tefe / @tefetic

01/30/2020 at 08:49PM

49
#>76 - Tefe / @tefetic

01/30/2020 at 08:47PM

50
#>77 - Tefe / @tefetic

01/30/2020 at 08:44PM

53
#>81 - Tefe / @tefetic

01/30/2020 at 08:33PM

58
#>94 - Tefe / @tefetic

01/30/2020 at 08:21PM

64
#>103 - Tefe / @tefetic

01/30/2020 at 08:16PM