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 5462e3f41198b80002512673

I forgot quotes

Oops.

Start file
foo = a
      ab
      abc
End file
foo = "a"
      "ab"
      "abc"

View Diff

1,3c1,3
< foo = a
<       ab
<       abc
---
> foo = "a"
>       "ab"
>       "abc"

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 3812 remaining solutions by signing in and submitting your own entry
#3813 x / @am_zzz_zzz - Score: 216 - 05/12/20 @ 07:30
llllllciw''<Esc>pjhlhciw''<Esc>pjhciw''<Esc>pkjuuuuuuciw'<C-R><C-O>"<C-H>"'<Esc>jjhciw'<C-R><C-O>"'<Esc>khhhlll.kh.jjhhvi'hluuuuuujjjlciw'<C-R><C-O>"'<Esc>ul.k.k.jjj:reg<CR>quuuuuukkv<Esc><Esc><C-V>jj:<Esc><Esc><Esc><Esc><Esc>jqk<C-V>jj:norm i'<C-V><Esc>A'<CR>khhhullllll<C-V>jjk<Esc>kciw"<Esc>pa"<Esc>uuujukkjlhkqaciw""<Esc>hpqj@aj@a:wq<CR>

0 comments


Created by: @udioica

3813 active golfers, 14512 entries

Leaderboard (lowest score wins):
12
#1231 - Hawk Newton / @hawknewton

11/13/2017 at 10:08PM

12
#1232 - QingyuZhao / @zhao_qingyu

11/21/2017 at 07:42AM

12
#1233 - deepak / @utopianmonk

12/23/2017 at 10:56PM

12
#1234 - Joe Kerian / @kerian

01/08/2018 at 09:25PM

12
#1235 - Luong Nguyen / @LuongNguyen_95

01/14/2018 at 07:46AM

12
#1236 - genoskill / @Genoskill

01/29/2018 at 01:07AM

12
#1237 - Infinity Delta / @InfinityDelta

01/31/2018 at 10:56PM

12
#1238 - Max Horn / @maexlich

03/02/2018 at 10:43PM

12
#1239 - Oleg Skillup / @skill_up

03/20/2018 at 07:10PM

12
#1240 - Vim Golf / @VimgolfVim

03/30/2018 at 03:18AM

12
#1241 - Jy / @PHP_is_the_best

04/15/2018 at 08:15PM

12
#1242 - Ben Sherman / @bensherman

04/25/2018 at 08:17PM

12
#1243 - Jack Shannon / @grokmotive

04/28/2018 at 09:44AM

12
#1244 - Jay Knight / @jayknight

05/04/2018 at 02:35PM

12
#1245 - Elite Hacker of the Light / @L3E7

05/08/2018 at 06:21AM

12
#1246 - Leila Loezer / @leilaloezer

06/02/2018 at 05:43PM

12
#1247 - r / @revanthedarth

06/06/2018 at 03:31AM

12
#1248 - fayard / @fayard43698270

06/08/2018 at 02:48PM

12
#1249 - Suzanne / @suzbotq

07/24/2018 at 11:49PM

12
#1250 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 08:45PM

12
#1251 - antoine mas / @aneomas

01/05/2019 at 08:55PM

12
#1252 - 김성현 / @kshyun9023

02/03/2019 at 01:04AM

12
#1253 - hn9u / @hn9u

02/27/2019 at 10:48AM

12
#1254 - wanghbxxxx / @wanghbxxxx

04/01/2019 at 02:34AM

12
#1255 - phoibos92@gmail.com / @phoibos92

04/10/2019 at 04:39PM

12
#1256 - Michał Łowicki / @mlowicki

04/12/2019 at 07:47PM

12
#1257 - Neil Struthers / @struthersneil

07/16/2019 at 11:13AM

12
#1258 - James Raubenheimer / @jamzrob

08/06/2019 at 08:26PM

12
#1259 - trafficone / @trafficone

11/02/2019 at 05:34AM

12
#1260 - fkubota 🦉 / @the_phi_is_cast

12/26/2019 at 05:20AM