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

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

209 active golfers, 880 entries

Solutions by @hikyae:
24
#4 - hikyae / @hikyae

05/12/2025 at 01:30PM

27
#>10 - hikyae / @hikyae

05/12/2025 at 12:55PM

31
#>13 - hikyae / @hikyae

05/12/2025 at 12:54PM

35
#>15 - hikyae / @hikyae

05/12/2025 at 12:42PM

36
#>18 - hikyae / @hikyae

05/12/2025 at 12:39PM

37
#>20 - hikyae / @hikyae

05/12/2025 at 12:27PM

37
#>20 - hikyae / @hikyae

05/12/2025 at 12:36PM

38
#>29 - hikyae / @hikyae

05/12/2025 at 12:18PM

39
#>32 - hikyae / @hikyae

05/12/2025 at 12:16PM

41
#>35 - hikyae / @hikyae

05/12/2025 at 12:15PM

43
#>38 - hikyae / @hikyae

05/12/2025 at 12:12PM

44
#>42 - hikyae / @hikyae

05/12/2025 at 12:11PM

45
#>44 - hikyae / @hikyae

05/12/2025 at 12:08PM

46
#>46 - hikyae / @hikyae

05/12/2025 at 12:07PM

48
#>49 - hikyae / @hikyae

05/12/2025 at 12:02PM

50
#>52 - hikyae / @hikyae

05/12/2025 at 11:59AM

51
#>53 - hikyae / @hikyae

05/12/2025 at 11:58AM

60
#>72 - hikyae / @hikyae

05/12/2025 at 11:50AM

61
#>72 - hikyae / @hikyae

05/12/2025 at 11:46AM

63
#>75 - hikyae / @hikyae

05/12/2025 at 11:38AM

63
#>75 - hikyae / @hikyae

05/12/2025 at 11:41AM

77
#>101 - hikyae / @hikyae

05/12/2025 at 11:34AM

122
#>180 - hikyae / @hikyae

05/12/2025 at 11:25AM