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 9v0067a47b9200000000069f

Reordering properties

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

Start file
#topbar {
  background-image: url("images/abc.png");
  background-position: 12px 13px;
  font-size: 1px;
  left: 36px;
  margin-top: 10px;
  position: relative;
  top: 23px;
  vertical-align: middle;
  width: 200px;
}

#topbar .logo {
  top: 50%;
  position: absolute;
  left: 20px;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
End file
#topbar {
  top: 23px;
  left: 36px;
  width: 200px;
  font-size: 1px;
  margin-top: 10px;
  position: relative;
  vertical-align: middle;
  background-position: 12px 13px;
  background-image: url("images/abc.png");
}

#topbar .logo {
  top: 50%;
  left: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translateY(-50%);
}

View Diff

2,4c2
<   background-image: url("images/abc.png");
<   background-position: 12px 13px;
<   font-size: 1px;
---
>   top: 23px;
5a4,5
>   width: 200px;
>   font-size: 1px;
8d7
<   top: 23px;
10c9,10
<   width: 200px;
---
>   background-position: 12px 13px;
>   background-image: url("images/abc.png");
15d14
<   position: absolute;
17c16
<   transform: translateY(-50%);
---
>   color: #fff;
20,21c19
<   color: #fff;
<   text-transform: uppercase;
---
>   position: absolute;
22a21,22
>   text-transform: uppercase;
>   transform: translateY(-50%);

Solutions by @GavinKoeng:

Unlock 31 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

269 active golfers, 1136 entries

Solutions by @GavinKoeng:
24
#11 - Gavin / @GavinKoeng

10/23/2025 at 12:18PM

24
#>11 - Gavin / @GavinKoeng

10/23/2025 at 12:30PM

24
#>11 - Gavin / @GavinKoeng

10/23/2025 at 12:31PM

24
#>11 - Gavin / @GavinKoeng

10/23/2025 at 12:40PM

27
#>14 - Gavin / @GavinKoeng

10/23/2025 at 12:16PM

31
#>19 - Gavin / @GavinKoeng

10/23/2025 at 12:09PM

35
#>22 - Gavin / @GavinKoeng

10/23/2025 at 12:03PM

36
#>23 - Gavin / @GavinKoeng

10/23/2025 at 11:26AM

37
#>25 - Gavin / @GavinKoeng

10/23/2025 at 09:40AM

38
#>36 - Gavin / @GavinKoeng

10/23/2025 at 09:26AM

40
#>43 - Gavin / @GavinKoeng

10/23/2025 at 09:20AM

41
#>45 - Gavin / @GavinKoeng

10/23/2025 at 09:16AM

42
#>45 - Gavin / @GavinKoeng

10/23/2025 at 09:13AM

43
#>52 - Gavin / @GavinKoeng

10/23/2025 at 08:56AM

43
#>52 - Gavin / @GavinKoeng

10/23/2025 at 09:00AM

44
#>56 - Gavin / @GavinKoeng

10/23/2025 at 08:46AM

44
#>56 - Gavin / @GavinKoeng

10/23/2025 at 08:53AM

45
#>60 - Gavin / @GavinKoeng

10/23/2025 at 08:25AM

46
#>64 - Gavin / @GavinKoeng

10/23/2025 at 08:45AM

56
#>85 - Gavin / @GavinKoeng

10/23/2025 at 08:24AM

57
#>87 - Gavin / @GavinKoeng

10/23/2025 at 08:20AM

68
#>115 - Gavin / @GavinKoeng

10/23/2025 at 08:13AM

69
#>116 - Gavin / @GavinKoeng

10/23/2025 at 08:08AM

84
#>162 - Gavin / @GavinKoeng

10/23/2025 at 08:05AM

88
#>172 - Gavin / @GavinKoeng

10/23/2025 at 07:48AM

114
#>220 - Gavin / @GavinKoeng

10/23/2025 at 07:17AM

128
#>238 - Gavin / @GavinKoeng

10/23/2025 at 07:46AM

139
#>246 - Gavin / @GavinKoeng

10/23/2025 at 06:16AM

419
#>269 - Gavin / @GavinKoeng

10/23/2025 at 06:27AM

841
#>269 - Gavin / @GavinKoeng

10/23/2025 at 06:05AM

916
#>269 - Gavin / @GavinKoeng

10/23/2025 at 06:26AM