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

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

146 active golfers, 819 entries

Solutions by @park_jungy:
30
#15 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:20PM

31
#>25 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:19PM

33
#>32 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:18PM

34
#>41 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:17PM

35
#>42 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:11PM

36
#>44 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:09PM

38
#>48 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:08PM

39
#>54 - Jung Yeon Park / @park_jungy

01/04/2021 at 03:01PM

40
#>55 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:59PM

41
#>59 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:59PM

43
#>62 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:58PM

45
#>72 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:55PM

46
#>83 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:53PM

47
#>87 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:53PM

48
#>90 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:51PM

49
#>93 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:44PM

50
#>94 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:43PM

53
#>99 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:41PM

64
#>121 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:38PM