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 55b18bbea9c2c30d04000001

Simple, Practical, and Common

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

Start file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

This challenge is just a simple movement and entering text at a certain place.
End file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0
*temp var7 11

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

New text.

This challenge is just a simple movement and entering text at a certain place.

View Diff

6a7
> *temp var7 11
8a10,11
> 
> New text.

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 7062 remaining solutions by signing in and submitting your own entry
#7063 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

7063 active golfers, 32034 entries

Leaderboard (lowest score wins):
23
#2371 - Luc Trudeau / @LT_Pragmatic

04/09/2016 at 01:09AM

23
#2372 - f00b8tr / @f00b8tr5

04/09/2016 at 03:38AM

23
#2373 - E Both / @enboth

04/13/2016 at 11:23AM

23
#2374 - Juho Vikman / @JuhoIVikman

04/24/2016 at 01:46PM

23
#2375 - Vaughn Cato / @vaughncato

04/25/2016 at 12:01AM

23
#2376 - Kawin Nikomborirak / @nikomborirak

05/02/2016 at 04:42AM

23
#2377 - Lim Chun Leng / @chunleng

05/02/2016 at 04:13PM

23
#2378 - Joseph Barratt / @josephmbarratt

05/02/2016 at 07:36PM

23
#2379 - iikieh / @iikieh

05/06/2016 at 04:35PM

23
#2380 - Steven Moazami / @mong8se

05/08/2016 at 01:21AM

23
#2381 - Ricardo Santos / @TWidXugA

05/14/2016 at 03:24PM

23
#2382 - John Smith / @JohnSmith448816

05/14/2016 at 07:04PM

23
#2383 - Michael / @michael40226613

05/23/2016 at 04:54AM

23
#2384 - Balazeal / @Balazeal

06/01/2016 at 09:14AM

23
#2385 - Jim Kemper / @Jimkemper2

06/05/2016 at 02:33AM

23
#2386 - Dominic Muller / @domgetter

06/08/2016 at 11:30PM

23
#2387 - φ / @phittacus

06/10/2016 at 08:33AM

23
#2388 - Ivo Burkatzki / @ibukat

06/11/2016 at 02:10AM

23
#2389 - Garph0 / @garph0

06/14/2016 at 04:14PM

23
#2390 - Fan Zhang / @ffanzhang

06/14/2016 at 11:18PM

23
#2391 - kuwa / @lrmystp

06/24/2016 at 07:22PM

23
#2392 - Hayden Chudy / @hjc1710

06/25/2016 at 07:31AM

23
#2393 - Alex Rod. / @thealex23ro

06/29/2016 at 07:36PM

23
#2394 - Olik / @oli33k

07/06/2016 at 02:27PM

23
#2395 - kwa / @kwa129

07/18/2016 at 11:57AM

23
#2396 - Quang Đào / @quang16400

07/18/2016 at 06:51PM

23
#2397 - André Peric Tavares / @andre_peric

07/19/2016 at 05:26PM

23
#2398 - ゆきみ / @edp02

07/20/2016 at 03:06PM

23
#2399 - icchy / @icchyr

07/22/2016 at 05:25AM

23
#2400 - David Millman / @dlmillman

07/24/2016 at 02:46PM