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

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

150 active golfers, 849 entries

Solutions by @nicosierra84:
30
#7 - nicosierra / @nicosierra84

03/22/2020 at 09:31PM

30
#>7 - nicosierra / @nicosierra84

03/22/2020 at 09:41PM

31
#>22 - nicosierra / @nicosierra84

03/22/2020 at 09:29PM

33
#>34 - nicosierra / @nicosierra84

03/22/2020 at 09:24PM

34
#>42 - nicosierra / @nicosierra84

03/22/2020 at 09:13PM

34
#>42 - nicosierra / @nicosierra84

03/22/2020 at 09:17PM

37
#>47 - nicosierra / @nicosierra84

03/22/2020 at 09:09PM

39
#>57 - nicosierra / @nicosierra84

03/22/2020 at 09:03PM

41
#>60 - nicosierra / @nicosierra84

03/22/2020 at 09:01PM

44
#>67 - nicosierra / @nicosierra84

03/22/2020 at 08:59PM

45
#>69 - nicosierra / @nicosierra84

03/22/2020 at 08:53PM

46
#>78 - nicosierra / @nicosierra84

03/22/2020 at 08:49PM

46
#>78 - nicosierra / @nicosierra84

03/22/2020 at 08:50PM

47
#>89 - nicosierra / @nicosierra84

03/22/2020 at 08:48PM

48
#>93 - nicosierra / @nicosierra84

03/22/2020 at 08:46PM

49
#>96 - nicosierra / @nicosierra84

03/22/2020 at 08:35PM

56
#>110 - nicosierra / @nicosierra84

03/22/2020 at 08:29PM

77
#>134 - nicosierra / @nicosierra84

03/22/2020 at 08:23PM