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

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

129 active golfers, 674 entries

Solutions by @D4KU_:
30
#13 - David Kutschke / @D4KU_

11/22/2020 at 06:45PM

31
#>18 - David Kutschke / @D4KU_

11/22/2020 at 06:41PM

33
#>25 - David Kutschke / @D4KU_

11/22/2020 at 06:38PM

34
#>34 - David Kutschke / @D4KU_

11/22/2020 at 06:37PM

38
#>39 - David Kutschke / @D4KU_

11/22/2020 at 06:32PM

39
#>45 - David Kutschke / @D4KU_

11/22/2020 at 06:29PM

40
#>46 - David Kutschke / @D4KU_

11/22/2020 at 06:27PM

41
#>48 - David Kutschke / @D4KU_

11/22/2020 at 06:26PM

42
#>48 - David Kutschke / @D4KU_

11/22/2020 at 06:24PM

44
#>53 - David Kutschke / @D4KU_

11/22/2020 at 06:22PM

45
#>59 - David Kutschke / @D4KU_

11/22/2020 at 06:17PM

46
#>70 - David Kutschke / @D4KU_

11/22/2020 at 06:10PM