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

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

155 active golfers, 879 entries

Solutions by @floyd10086:
31
#24 - floyd / @floyd10086

03/01/2020 at 01:53AM

33
#>36 - floyd / @floyd10086

02/29/2020 at 09:48AM

34
#>42 - floyd / @floyd10086

02/29/2020 at 09:46AM

37
#>49 - floyd / @floyd10086

02/29/2020 at 09:42AM

39
#>58 - floyd / @floyd10086

02/28/2020 at 05:11AM

40
#>60 - floyd / @floyd10086

02/28/2020 at 05:10AM

41
#>62 - floyd / @floyd10086

02/28/2020 at 05:08AM

42
#>64 - floyd / @floyd10086

02/28/2020 at 05:05AM

44
#>69 - floyd / @floyd10086

02/28/2020 at 05:02AM

45
#>71 - floyd / @floyd10086

02/28/2020 at 04:56AM

54
#>110 - floyd / @floyd10086

02/28/2020 at 04:44AM

60
#>125 - floyd / @floyd10086

02/28/2020 at 04:41AM

77
#>138 - floyd / @floyd10086

02/27/2020 at 08:28AM

146
#>146 - floyd / @floyd10086

02/27/2020 at 07:37AM