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

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

143 active golfers, 787 entries

Solutions by @speiszc:
31
#22 - speisz / @speiszc

08/31/2020 at 12:38PM

33
#>31 - speisz / @speiszc

08/31/2020 at 12:25PM

34
#>38 - speisz / @speiszc

08/31/2020 at 12:24PM

35
#>41 - speisz / @speiszc

08/31/2020 at 12:14PM

36
#>43 - speisz / @speiszc

08/30/2020 at 10:01PM

37
#>43 - speisz / @speiszc

08/30/2020 at 09:57PM

39
#>52 - speisz / @speiszc

08/30/2020 at 09:53PM

40
#>53 - speisz / @speiszc

08/30/2020 at 09:47PM

41
#>55 - speisz / @speiszc

08/30/2020 at 09:45PM

42
#>56 - speisz / @speiszc

08/30/2020 at 09:42PM

43
#>59 - speisz / @speiszc

08/31/2020 at 12:37PM

44
#>60 - speisz / @speiszc

08/30/2020 at 07:42PM

46
#>77 - speisz / @speiszc

06/30/2020 at 10:08PM

46
#>79 - speisz / @speiszc

08/29/2020 at 10:05PM