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 4fdb12a383de630001000005

Aligning function arguments to match a specific coding style

Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.

Start file
void
clutter_layout_manager_get_preferred_width (ClutterActor *actor,
                                            ClutterContainer *container,
                                            gfloat for_width,
                                            gfloat *min_width_p,
                                            gfloat *natural_width_p)
{
}
End file
void
clutter_layout_manager_get_preferred_width (ClutterActor     *actor,
                                            ClutterContainer *container,
                                            gfloat            for_width,
                                            gfloat           *min_width_p,
                                            gfloat           *natural_width_p)
{
}

View Diff

2c2
< clutter_layout_manager_get_preferred_width (ClutterActor *actor,
---
> clutter_layout_manager_get_preferred_width (ClutterActor     *actor,
4,6c4,6
<                                             gfloat for_width,
<                                             gfloat *min_width_p,
<                                             gfloat *natural_width_p)
---
>                                             gfloat            for_width,
>                                             gfloat           *min_width_p,
>                                             gfloat           *natural_width_p)

Solutions by @Y9eKW0qxvsdIN6W:

Unlock 20 remaining solutions by signing in and submitting your own entry
Created by: @buzbone

68 active golfers, 227 entries

Solutions by @Y9eKW0qxvsdIN6W:
16
#6 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 07:23AM

17
#>28 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 07:22AM

18
#>36 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 07:21AM

19
#>39 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 07:19AM

21
#>43 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 06:52AM

22
#>45 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 06:11AM

23
#>52 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:58AM

24
#>56 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:57AM

25
#>57 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:55AM

26
#>57 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:45AM

26
#>57 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:55AM

27
#>60 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:10AM

28
#>61 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:07AM

29
#>62 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:06AM

30
#>63 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 04:03AM

30
#>63 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 05:01AM

32
#>65 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 03:59AM

48
#>66 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 03:58AM

58
#>67 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 03:55AM

77
#>67 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 03:52AM