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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
36
#6481 - Sabrina Seibel / @seibelsabrina

04/25/2020 at 10:01PM

36
#6482 - soumyaranjan acharya / @code_hia

04/30/2020 at 05:49PM

36
#6483 - Husnain Murtaza / @husnainmurtaza_

05/21/2020 at 09:48AM

36
#6484 - Brett Levenson / @brett_levenson

05/25/2020 at 01:10AM

36
#6485 - tranmonglong / @tranmonglong

07/02/2020 at 07:42AM

36
#6486 - Vim Golfer / @VimGolfer17

07/03/2020 at 02:23AM

36
#6487 - Dane / @studdugie

07/27/2020 at 06:52PM

36
#6488 - techan / @165cmtallboy

07/31/2020 at 08:37AM

36
#6489 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 09:40AM

36
#6490 - notadevCollins / @NotadevC

08/10/2020 at 06:19PM

36
#6491 - Anil Narayan / @AnilNarayan2013

09/16/2020 at 04:21AM

36
#6492 - nazrulla / @nazrull35012854

09/17/2020 at 12:39PM

36
#6493 - Ramon Comellas / @rcomellas

09/19/2020 at 11:22AM

36
#6494 - John Doe / @JohnDoe54038605

09/30/2020 at 03:05PM

36
#6495 - Konrad Heidler / @koheidler

10/02/2020 at 09:32AM

36
#6496 - lp / @loserprance

11/01/2020 at 04:28AM

36
#6497 - tyuktu / @tyuk_tu

11/20/2020 at 02:54AM

37
#6498 - 0xEE / @ejcx_

09/18/2015 at 11:13PM

37
#6499 - levicook / @levicook

11/09/2015 at 07:05PM

37
#6500 - โป๊งเหน่ง.js / @biiterlove

12/08/2015 at 05:04AM

37
#6501 - Justyna Rachowicz / @mrowa44

12/24/2015 at 01:09PM

37
#6502 - Stas Karpov / @dragothefiery

02/18/2016 at 09:37AM

37
#6503 - reyonman / @reyonman

02/24/2016 at 11:11PM

37
#6504 - Ryan Diaz / @RyanDiaz18

03/26/2016 at 04:25AM

37
#6505 - Thenix Down / @thenixdown

04/20/2016 at 03:38PM

37
#6506 - Ramon Sanabria / @Sanabria_RST

05/30/2016 at 12:24AM

37
#6507 - Ganesh Datta / @gsdatta

06/05/2016 at 06:23AM

37
#6508 - Tsing Gu / @TsingGu

08/16/2016 at 03:28PM

37
#6509 - Brian Cantrell / @briancantrell

09/01/2016 at 07:41PM

37
#6510 - Tom Sun / @tomsun100

10/05/2016 at 02:13AM