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

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

143 active golfers, 787 entries

Solutions by @muryliang:
31
#21 - mury liang / @muryliang

04/05/2020 at 04:47AM

33
#>30 - mury liang / @muryliang

04/05/2020 at 04:45AM

34
#>38 - mury liang / @muryliang

04/05/2020 at 04:41AM

38
#>46 - mury liang / @muryliang

04/05/2020 at 04:36AM

39
#>52 - mury liang / @muryliang

04/05/2020 at 04:31AM

40
#>53 - mury liang / @muryliang

04/05/2020 at 04:29AM

41
#>54 - mury liang / @muryliang

04/05/2020 at 04:27AM

44
#>60 - mury liang / @muryliang

04/05/2020 at 04:21AM

45
#>66 - mury liang / @muryliang

04/05/2020 at 04:18AM

46
#>74 - mury liang / @muryliang

04/05/2020 at 04:14AM

47
#>83 - mury liang / @muryliang

04/05/2020 at 04:11AM

49
#>90 - mury liang / @muryliang

04/05/2020 at 04:07AM

50
#>91 - mury liang / @muryliang

04/05/2020 at 04:05AM

52
#>94 - mury liang / @muryliang

04/05/2020 at 03:31AM

52
#>94 - mury liang / @muryliang

04/05/2020 at 04:00AM

98
#>133 - mury liang / @muryliang

04/05/2020 at 02:52AM