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

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

150 active golfers, 849 entries

Solutions by @Bspammer:
33
#35 - Bspammer / @Bspammer

05/07/2020 at 11:52AM

34
#>42 - Bspammer / @Bspammer

05/07/2020 at 11:52AM

35
#>45 - Bspammer / @Bspammer

05/07/2020 at 11:50AM

36
#>47 - Bspammer / @Bspammer

05/07/2020 at 11:49AM

36
#>47 - Bspammer / @Bspammer

05/07/2020 at 11:57AM

38
#>51 - Bspammer / @Bspammer

05/07/2020 at 11:47AM

39
#>57 - Bspammer / @Bspammer

05/07/2020 at 11:40AM

40
#>58 - Bspammer / @Bspammer

05/07/2020 at 11:38AM

43
#>65 - Bspammer / @Bspammer

05/07/2020 at 11:36AM

45
#>72 - Bspammer / @Bspammer

05/07/2020 at 11:27AM

45
#>72 - Bspammer / @Bspammer

05/07/2020 at 11:31AM

66
#>126 - Bspammer / @Bspammer

05/07/2020 at 09:29AM

72
#>130 - Bspammer / @Bspammer

05/07/2020 at 09:27AM