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

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

155 active golfers, 879 entries

Solutions by @xiote2:
39
#58 - xiote / @xiote2

02/06/2020 at 09:24PM

41
#>62 - xiote / @xiote2

02/06/2020 at 09:17PM

43
#>66 - xiote / @xiote2

02/06/2020 at 09:14PM

46
#>77 - xiote / @xiote2

02/06/2020 at 09:02PM

46
#>77 - xiote / @xiote2

02/06/2020 at 09:05PM

47
#>89 - xiote / @xiote2

02/06/2020 at 08:39PM

49
#>99 - xiote / @xiote2

02/06/2020 at 08:35PM

51
#>101 - xiote / @xiote2

02/06/2020 at 08:25PM

51
#>101 - xiote / @xiote2

02/06/2020 at 08:34PM

55
#>112 - xiote / @xiote2

02/06/2020 at 07:25PM

73
#>134 - xiote / @xiote2

02/06/2020 at 07:05PM

82
#>140 - xiote / @xiote2

02/06/2020 at 07:02PM