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

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

129 active golfers, 674 entries

Solutions by @KyXr_Clark:
34
#29 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:58PM

34
#>29 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 09:09PM

37
#>37 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:44PM

39
#>44 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:40PM

40
#>45 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:34PM

42
#>48 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:28PM

42
#>48 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:32PM

43
#>49 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:30PM

44
#>52 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:20PM

46
#>59 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 08:07PM

55
#>89 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 06:37PM

63
#>103 - Kyle X. Clark / @KyXr_Clark

02/07/2020 at 06:29PM