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

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

129 active golfers, 674 entries

Solutions by @PaulDesmoParker:
30
#3 - Paul Parker / @PaulDesmoParker

03/08/2020 at 05:27AM

33
#>24 - Paul Parker / @PaulDesmoParker

03/08/2020 at 04:52AM

34
#>31 - Paul Parker / @PaulDesmoParker

03/08/2020 at 04:44AM

35
#>35 - Paul Parker / @PaulDesmoParker

03/08/2020 at 04:30AM

37
#>37 - Paul Parker / @PaulDesmoParker

03/08/2020 at 04:11AM

39
#>44 - Paul Parker / @PaulDesmoParker

03/08/2020 at 01:05AM

40
#>46 - Paul Parker / @PaulDesmoParker

03/08/2020 at 12:57AM

43
#>49 - Paul Parker / @PaulDesmoParker

03/08/2020 at 12:46AM

45
#>54 - Paul Parker / @PaulDesmoParker

03/07/2020 at 06:42AM

47
#>71 - Paul Parker / @PaulDesmoParker

03/07/2020 at 06:37AM