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

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

150 active golfers, 849 entries

Solutions by @EshelBM:
30
#1 - eshel / @EshelBM

02/27/2020 at 03:12AM

33
#>34 - eshel / @EshelBM

02/27/2020 at 02:53AM

35
#>45 - eshel / @EshelBM

02/27/2020 at 12:39AM

35
#>45 - eshel / @EshelBM

02/27/2020 at 02:51AM

37
#>47 - eshel / @EshelBM

02/27/2020 at 12:37AM

39
#>56 - eshel / @EshelBM

02/27/2020 at 12:28AM

39
#>56 - eshel / @EshelBM

02/27/2020 at 12:30AM

41
#>60 - eshel / @EshelBM

02/27/2020 at 12:23AM

44
#>67 - eshel / @EshelBM

02/27/2020 at 12:06AM

46
#>76 - eshel / @EshelBM

02/26/2020 at 11:57PM

53
#>102 - eshel / @EshelBM

02/26/2020 at 11:44PM

55
#>108 - eshel / @EshelBM

02/26/2020 at 11:33PM

57
#>114 - eshel / @EshelBM

02/26/2020 at 11:23PM

59
#>119 - eshel / @EshelBM

02/26/2020 at 11:11PM

61
#>121 - eshel / @EshelBM

02/22/2020 at 03:40PM

88
#>140 - eshel / @EshelBM

02/22/2020 at 03:23PM

151
#>142 - eshel / @EshelBM

02/22/2020 at 03:11PM