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

140 active golfers, 777 entries

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

02/06/2020 at 09:24PM

41
#>53 - xiote / @xiote2

02/06/2020 at 09:17PM

43
#>56 - xiote / @xiote2

02/06/2020 at 09:14PM

46
#>68 - xiote / @xiote2

02/06/2020 at 09:02PM

46
#>68 - xiote / @xiote2

02/06/2020 at 09:05PM

47
#>80 - xiote / @xiote2

02/06/2020 at 08:39PM

49
#>88 - xiote / @xiote2

02/06/2020 at 08:35PM

51
#>90 - xiote / @xiote2

02/06/2020 at 08:25PM

51
#>90 - xiote / @xiote2

02/06/2020 at 08:34PM

55
#>99 - xiote / @xiote2

02/06/2020 at 07:25PM

73
#>120 - xiote / @xiote2

02/06/2020 at 07:05PM

82
#>126 - xiote / @xiote2

02/06/2020 at 07:02PM