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

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

272 active golfers, 1162 entries

Solutions by @HansAschenloher:
24
#14 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:53PM

24
#>14 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:54PM

25
#>14 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:51PM

30
#>16 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:49PM

31
#>20 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:42PM

35
#>23 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:39PM

36
#>24 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:36PM

37
#>28 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:23PM

38
#>37 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:15PM

40
#>45 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:06PM

41
#>46 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 12:31PM

44
#>59 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 12:15PM

46
#>65 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 12:09PM

48
#>70 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 11:55AM

49
#>71 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 11:51AM

55
#>83 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 11:04AM

60
#>97 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:56AM

64
#>104 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:53AM

67
#>115 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:52AM

74
#>128 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:42AM

87
#>173 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:39AM

116
#>225 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 10:10AM