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

6046 active golfers, 27155 entries

Leaderboard (lowest score wins):
36
#5521 - tmp4869 / @tmp4869

08/24/2018 at 12:49PM

36
#5522 - Wilhelm / @wkirschbaum

09/09/2018 at 08:08AM

36
#5523 - Ruben Paz / @IstarEldritch

09/15/2018 at 08:47PM

36
#5524 - Toby R / @TobyRet

10/01/2018 at 10:09AM

36
#5525 - Freak's Utopia / @Freak_s_Utopia

10/02/2018 at 05:21PM

36
#5526 - Adam May / @Adam0May

10/05/2018 at 07:33PM

36
#5527 - 茶々豆 / @chachamame0420

10/19/2018 at 12:27PM

36
#5528 - Singwai Chan / @singwai_chan

10/21/2018 at 04:18AM

36
#5529 - Daniel White / @dwhitedev

10/23/2018 at 05:06AM

36
#5530 - joey caffrey / @caffmuscles24

10/30/2018 at 03:12PM

36
#5531 - Sayan Sarkar / @StrongReduction

11/11/2018 at 07:15AM

36
#5532 - jonbwhite / @jonbwhite

11/29/2018 at 01:17AM

36
#5533 - Eliana Abraham / @abrajaaamz

12/16/2018 at 09:24PM

36
#5534 - .ごっち / @gggooottto

02/04/2019 at 07:42AM

36
#5535 - Vincent Arel-Bundock / @VincentAB

02/06/2019 at 01:56PM

36
#5536 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 08:00PM

36
#5537 - joe-xyz / @joexyz7

02/13/2019 at 08:45PM

36
#5538 - Garbunkles / @garbunkles

02/21/2019 at 02:29PM

36
#5539 - Steven Liu / @stevenliu216

02/28/2019 at 03:42AM

36
#5540 - TadikMaHladik / @TadikH

02/28/2019 at 02:03PM

36
#5541 - Alexander Popov / @Alexand01782341

03/01/2019 at 12:39PM

36
#5542 - damo / @damopewpew

03/02/2019 at 12:50AM

36
#5543 - Chloe Ransom / @cransom12

03/08/2019 at 01:10PM

36
#5544 - razlani / @razlani1

03/17/2019 at 12:24PM

36
#5545 - v1rusw0rm / @v1rusw0rm

03/17/2019 at 03:47PM

36
#5546 - EarthToAbigail / @EarthAbigail

04/02/2019 at 05:38AM

36
#5547 - whatstheirbucket / @whatstheirbuckt

04/04/2019 at 02:19PM

36
#5548 - Herman Stavelin / @HsBruker

04/04/2019 at 04:57PM

36
#5549 - virus / @fishmobius

04/17/2019 at 03:19PM

36
#5550 - john ford / @johnfor65634499

04/17/2019 at 10:11PM