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

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

142 active golfers, 781 entries

Solutions by @lelandpaul:
34
#38 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:11PM

38
#>45 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:08PM

39
#>51 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:05PM

40
#>52 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:04PM

41
#>54 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:03PM

43
#>58 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:03PM

44
#>59 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 04:02PM

45
#>67 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 03:59PM

46
#>79 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 03:56PM

48
#>86 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 03:54PM

49
#>89 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 03:51PM

55
#>101 - Leland Paul Kusmer / @lelandpaul

10/27/2020 at 03:44PM