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

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

155 active golfers, 879 entries

Solutions by @nonsleepr:
34
#42 - Alexander Bessonov / @nonsleepr

02/13/2020 at 07:17PM

34
#>42 - Alexander Bessonov / @nonsleepr

02/13/2020 at 07:27PM

37
#>49 - Alexander Bessonov / @nonsleepr

02/13/2020 at 07:01PM

39
#>58 - Alexander Bessonov / @nonsleepr

02/13/2020 at 06:51PM

42
#>64 - Alexander Bessonov / @nonsleepr

02/13/2020 at 06:48PM

43
#>66 - Alexander Bessonov / @nonsleepr

02/13/2020 at 06:30PM

45
#>70 - Alexander Bessonov / @nonsleepr

02/13/2020 at 06:17PM

48
#>94 - Alexander Bessonov / @nonsleepr

02/13/2020 at 05:41PM