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

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

155 active golfers, 879 entries

Solutions by @jeffacce:
46
#83 - Jeff Cui / @jeffacce

05/12/2020 at 10:10AM

47
#>92 - Jeff Cui / @jeffacce

05/12/2020 at 09:59AM

61
#>126 - Jeff Cui / @jeffacce

05/12/2020 at 09:42AM

64
#>129 - Jeff Cui / @jeffacce

05/12/2020 at 09:36AM

67
#>131 - Jeff Cui / @jeffacce

05/12/2020 at 08:57AM

67
#>131 - Jeff Cui / @jeffacce

05/12/2020 at 09:03AM

68
#>131 - Jeff Cui / @jeffacce

05/12/2020 at 08:47AM

70
#>133 - Jeff Cui / @jeffacce

05/12/2020 at 08:35AM

113
#>145 - Jeff Cui / @jeffacce

05/12/2020 at 08:26AM

135
#>146 - Jeff Cui / @jeffacce

05/12/2020 at 08:22AM