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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 276 remaining solutions by signing in and submitting your own entry
#277 hartun9 / @hartun9 - Score: 284 - 10/03/25 @ 05:35
<Esc>jjjjjjjddkkkkkkpkddjjjjjjjjjjjjjjjjjjj%p<50-53><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><0xe3><0x81><0xa3><Esc>[201~<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Esc>u<Esc>kkkkkkkkkkkkkkkkkddkkkpjjjjjjjkddkkkkkkpjjddkkpjjddkkpjjddkpddkkpjjjjjjjjjjjjjjjyVykkkkkkkkkkkkkkpjddkkkpjjjjjjjjddkkpjjjjjddkkkkkpjjjddkkkpjjjddkkkpjjjjddkkkpjkjjjddkkddjkp<Esc>:wq<CR>

0 comments


Created by: @maharba6

277 active golfers, 1212 entries

Leaderboard (lowest score wins):
106
#211 - cenan ozen / @cenan

04/05/2025 at 03:10PM

106
#212 - jvegar / @jvegar

04/21/2025 at 09:20PM

106
#213 - Sjur B. / @Apostrophel

05/23/2025 at 08:01PM

106
#214 - Rojohn / @SrVariable

05/24/2025 at 12:01AM

107
#215 - Guakk / @ANewProfile

04/15/2025 at 12:32PM

107
#216 - dolfin1107 / @dolfin1107

07/15/2025 at 04:35PM

107
#217 - Scott Brady / @scottbradybuckii

10/01/2025 at 03:47AM

107
#218 - Tyler Patton / @jamestylerpatton

11/19/2025 at 11:43PM

108
#219 - RomeoV / @RomeoV

01/14/2026 at 10:36PM

109
#220 - Pieter-Jan Tuytschaever / @ptuytsch

03/28/2025 at 06:42PM

109
#221 - Kardo / @kardoj

10/04/2025 at 06:26AM

110
#222 - Staffan Sandberg / @Sandsten

03/28/2025 at 05:20PM

110
#223 - markbailey0356 / @markbailey0356

07/02/2025 at 12:30AM

112
#224 - a94qu0402 / @a94qu0402

02/25/2025 at 03:21PM

114
#225 - Andrii / @JustLinuxUser

04/25/2025 at 11:06PM

114
#226 - rellarda / @rellarda

04/27/2025 at 05:44PM

114
#227 - Retr0005 / @Retr0005

05/26/2025 at 08:31AM

115
#228 - TurtleMeds / @TurtleMeds

04/23/2025 at 05:44PM

116
#229 - xietanu / @xietanu

08/17/2025 at 01:54PM

117
#230 - Ava Gunn / @ava-gunn

03/01/2025 at 07:56PM

117
#231 - Oli / @olileung

03/14/2025 at 10:46AM

118
#232 - Noah Moss / @noahmoss

04/04/2025 at 04:06AM

121
#233 - GregoryDi / @GregoryDi

03/01/2025 at 02:53PM

121
#234 - Temp Dev / @TempDev9

04/20/2025 at 04:08PM

121
#235 - andrwe / @tewcan

06/05/2025 at 10:04PM

121
#236 - Harun KoƧ / @Wueenzy

12/19/2025 at 03:37PM

121
#237 - Dani Bengl / @cb341

12/22/2025 at 09:08PM

122
#238 - Karate Snoopy / @KarateSnoopy

01/21/2026 at 11:36AM

123
#239 - Jesper Hasselquist / @Joxtacy

05/17/2025 at 04:24PM

123
#240 - Nathan / @NathanSnail

09/21/2025 at 05:08AM