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

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

155 active golfers, 879 entries

Solutions by @nak38223985244:
30
#19 - naka / @nak38223985244

12/29/2023 at 02:03PM

31
#>32 - naka / @nak38223985244

12/29/2023 at 02:02PM

33
#>37 - naka / @nak38223985244

12/29/2023 at 01:59PM

34
#>46 - naka / @nak38223985244

12/29/2023 at 01:58PM

35
#>47 - naka / @nak38223985244

12/29/2023 at 01:55PM

36
#>49 - naka / @nak38223985244

12/29/2023 at 01:45PM

37
#>51 - naka / @nak38223985244

12/28/2023 at 12:52PM

38
#>53 - naka / @nak38223985244

12/27/2023 at 12:02PM

41
#>64 - naka / @nak38223985244

12/27/2023 at 11:59AM

42
#>65 - naka / @nak38223985244

12/27/2023 at 11:48AM

43
#>68 - naka / @nak38223985244

12/27/2023 at 11:43AM

44
#>70 - naka / @nak38223985244

12/25/2023 at 11:58AM

45
#>77 - naka / @nak38223985244

12/25/2023 at 11:47AM

46
#>89 - naka / @nak38223985244

12/23/2023 at 07:01AM

48
#>96 - naka / @nak38223985244

12/21/2023 at 12:32PM