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 6783 remaining solutions by signing in and submitting your own entry
#6784 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

6784 active golfers, 30704 entries

Leaderboard (lowest score wins):
23
#2461 - Quinn Collins / @Quinn00239061

05/06/2019 at 06:29PM

23
#2462 - jorge duran / @jduranroyo

05/18/2019 at 06:01PM

23
#2463 - shaz / @shaz30307204

05/23/2019 at 08:49AM

23
#2464 - Gar Morley / @garmorley

05/25/2019 at 09:13AM

23
#2465 - Ben M / @Sweet_Scientist

06/06/2019 at 02:40PM

23
#2466 - tPenguinLTG / @tpenguinltg

06/15/2019 at 02:42AM

23
#2467 - Elan Dubrofsky / @dubroe

06/19/2019 at 06:53PM

23
#2468 - Daniel Nadeau / @dnadeau13

06/22/2019 at 03:40AM

23
#2469 - vimgolfacct / @vimgolfacct

06/22/2019 at 02:05PM

23
#2470 - 김형창 / @uVmEMZsCgcYvqZi

06/25/2019 at 03:59AM

23
#2471 - Chester Yap / @Chest_ErYap

07/06/2019 at 10:53PM

23
#2472 - icicle / @icicle_freeze

07/09/2019 at 12:39PM

23
#2473 - Hampus HAUFFMAN / @HampusHauffman

07/10/2019 at 11:07AM

23
#2474 - Bradley M. Small / @BradleySmall

07/19/2019 at 01:35AM

23
#2475 - Manan Khattar / @KhattarManan

07/20/2019 at 10:20AM

23
#2476 - vana / @vana15129217

07/22/2019 at 01:47PM

23
#2477 - entitled millennial / @PythonBro

07/25/2019 at 08:25PM

23
#2478 - Jonathan Browning / @yungjig90

07/30/2019 at 05:46PM

23
#2479 - Joel Elkins / @dice_tea

08/01/2019 at 09:20PM

23
#2480 - Chloe Adeline / @SimpleRabbit

08/04/2019 at 03:01AM

23
#2481 - Marc André Freiheit / @marc_freiheit

08/09/2019 at 08:56AM

23
#2482 - ameebo / @meebwish546

08/21/2019 at 08:27PM

23
#2483 - averageRandomPerson / @averageRandomP1

08/22/2019 at 11:28PM

23
#2484 - LM / @LM50800723

08/23/2019 at 03:21PM

23
#2485 - ian / @ianbrault

08/29/2019 at 10:55PM

23
#2486 - Ivo Blöchliger / @aigledesalpes

09/01/2019 at 05:10PM

23
#2487 - Matt Walker / @MWers

09/10/2019 at 04:54PM

23
#2488 - asfsef / @asfsef5

09/11/2019 at 08:31PM

23
#2489 - Honza Uhlík / @JanUhlik

09/16/2019 at 07:12AM

23
#2490 - EL KESRI Othmane / @KesriOthmane

09/16/2019 at 01:27PM