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

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

146 active golfers, 819 entries

Solutions by @odjfnrtm:
31
#26 - 영훈 / @odjfnrtm

01/08/2021 at 08:44AM

33
#>32 - 영훈 / @odjfnrtm

01/08/2021 at 08:32AM

34
#>41 - 영훈 / @odjfnrtm

01/08/2021 at 08:31AM

35
#>42 - 영훈 / @odjfnrtm

01/08/2021 at 08:29AM

36
#>44 - 영훈 / @odjfnrtm

01/08/2021 at 08:28AM

38
#>48 - 영훈 / @odjfnrtm

01/08/2021 at 08:26AM

39
#>54 - 영훈 / @odjfnrtm

01/08/2021 at 08:24AM

40
#>55 - 영훈 / @odjfnrtm

01/08/2021 at 08:24AM

41
#>59 - 영훈 / @odjfnrtm

01/08/2021 at 08:22AM

41
#>59 - 영훈 / @odjfnrtm

01/08/2021 at 08:23AM

43
#>62 - 영훈 / @odjfnrtm

01/08/2021 at 08:22AM

44
#>64 - 영훈 / @odjfnrtm

01/08/2021 at 08:20AM

45
#>72 - 영훈 / @odjfnrtm

01/08/2021 at 08:19AM

46
#>83 - 영훈 / @odjfnrtm

01/08/2021 at 08:18AM

47
#>87 - 영훈 / @odjfnrtm

01/08/2021 at 08:17AM

48
#>90 - 영훈 / @odjfnrtm

01/08/2021 at 08:14AM

49
#>93 - 영훈 / @odjfnrtm

01/08/2021 at 08:04AM

50
#>94 - 영훈 / @odjfnrtm

01/08/2021 at 08:00AM

50
#>94 - 영훈 / @odjfnrtm

01/08/2021 at 08:02AM