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 51b4e3b920faf70002000001

Number an outline

The indent and words are right, but the numbers are all wrong.

Start file
1. One
  1. One
    1. One
  1. Two
    1. One
    1. Two
      1. One
    1. Three
    1. Four
  1. Three
    1. One
      1. One
      1. Two
    1. Two
  1. Four
    1. One
    1. Two
    1. Three
    1. Four
    1. Five
    1. Six
  1. Five
    1. One
    1. Two
    1. Three
1. Two
  1. One
    1. One
    1. Two
    1. Three
    1. Four
    1. Five
  1. Two
End file
1. One
  1. One
    1. One
  2. Two
    1. One
    2. Two
      1. One
    3. Three
    4. Four
  3. Three
    1. One
      1. One
      2. Two
    2. Two
  4. Four
    1. One
    2. Two
    3. Three
    4. Four
    5. Five
    6. Six
  5. Five
    1. One
    2. Two
    3. Three
2. Two
  1. One
    1. One
    2. Two
    3. Three
    4. Four
    5. Five
  2. Two

View Diff

4c4
<   1. Two
---
>   2. Two
6c6
<     1. Two
---
>     2. Two
8,10c8,10
<     1. Three
<     1. Four
<   1. Three
---
>     3. Three
>     4. Four
>   3. Three
13,15c13,15
<       1. Two
<     1. Two
<   1. Four
---
>       2. Two
>     2. Two
>   4. Four
17,22c17,22
<     1. Two
<     1. Three
<     1. Four
<     1. Five
<     1. Six
<   1. Five
---
>     2. Two
>     3. Three
>     4. Four
>     5. Five
>     6. Six
>   5. Five
24,26c24,26
<     1. Two
<     1. Three
< 1. Two
---
>     2. Two
>     3. Three
> 2. Two
29,33c29,33
<     1. Two
<     1. Three
<     1. Four
<     1. Five
<   1. Two
---
>     2. Two
>     3. Three
>     4. Four
>     5. Five
>   2. Two

Solutions by @nickandbro:

Unlock 27 remaining solutions by signing in and submitting your own entry
Created by: @udioica

78 active golfers, 280 entries

Solutions by @nickandbro:
40
#31 - nickGPT / @nickandbro

08/28/2024 at 06:33PM

41
#>32 - nickGPT / @nickandbro

08/28/2024 at 06:33PM

43
#>34 - nickGPT / @nickandbro

08/28/2024 at 06:33PM

46
#>35 - nickGPT / @nickandbro

08/28/2024 at 06:32PM

48
#>37 - nickGPT / @nickandbro

08/28/2024 at 06:32PM

49
#>38 - nickGPT / @nickandbro

08/28/2024 at 06:32PM

51
#>39 - nickGPT / @nickandbro

08/28/2024 at 06:32PM

52
#>41 - nickGPT / @nickandbro

08/28/2024 at 06:32PM

54
#>43 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

55
#>44 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

57
#>46 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

58
#>47 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

59
#>49 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

60
#>50 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

61
#>52 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

64
#>56 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

65
#>57 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

66
#>61 - nickGPT / @nickandbro

08/28/2024 at 06:31PM

67
#>63 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

68
#>65 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

69
#>67 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

70
#>68 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

71
#>70 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

73
#>71 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

80
#>72 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

84
#>75 - nickGPT / @nickandbro

08/28/2024 at 06:30PM

86
#>77 - nickGPT / @nickandbro

08/28/2024 at 06:29PM