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

7225 active golfers, 32690 entries

Leaderboard (lowest score wins):
36
#6601 - Jamie Houston / @silvyn

02/25/2020 at 03:49PM

36
#6602 - 88paco / @88paco1

02/28/2020 at 05:14PM

36
#6603 - drudd / @drudd

03/08/2020 at 03:32AM

36
#6604 - volandkit / @volandkit

04/17/2020 at 09:18PM

36
#6605 - Sabrina Seibel / @seibelsabrina

04/25/2020 at 10:01PM

36
#6606 - soumyaranjan acharya / @code_hia

04/30/2020 at 05:49PM

36
#6607 - Husnain Murtaza / @husnainmurtaza_

05/21/2020 at 09:48AM

36
#6608 - Brett Levenson / @brett_levenson

05/25/2020 at 01:10AM

36
#6609 - tranmonglong / @tranmonglong

07/02/2020 at 07:42AM

36
#6610 - Vim Golfer / @VimGolfer17

07/03/2020 at 02:23AM

36
#6611 - Dane / @studdugie

07/27/2020 at 06:52PM

36
#6612 - techan / @165cmtallboy

07/31/2020 at 08:37AM

36
#6613 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 09:40AM

36
#6614 - notadevCollins / @NotadevC

08/10/2020 at 06:19PM

36
#6615 - Anil Narayan / @AnilNarayan2013

09/16/2020 at 04:21AM

36
#6616 - nazrulla / @nazrull35012854

09/17/2020 at 12:39PM

36
#6617 - Ramon Comellas / @rcomellas

09/19/2020 at 11:22AM

36
#6618 - John Doe / @JohnDoe54038605

09/30/2020 at 03:05PM

36
#6619 - Konrad Heidler / @koheidler

10/02/2020 at 09:32AM

36
#6620 - lp / @loserprance

11/01/2020 at 04:28AM

36
#6621 - tyuktu / @tyuk_tu

11/20/2020 at 02:54AM

36
#6622 - Darren Inglis 🌱 / @IndieGardener

12/26/2020 at 07:47AM

36
#6623 - Wojciech Matuszewski / @wm_matuszewski

01/03/2021 at 05:27AM

36
#6624 - variable-pitch-mode / @ModePitch

01/04/2021 at 03:17AM

36
#6625 - Nandre / @nandre42

01/20/2021 at 01:05PM

36
#6626 - adamdiel / @kipmix

01/23/2021 at 06:08PM

36
#6627 - Tracing / @Tracing47202686

03/18/2021 at 07:17AM

36
#6628 - Jens Junker Pedersen / @junker_jens

05/02/2021 at 11:15AM

37
#6629 - 0xEE / @ejcx_

09/18/2015 at 11:13PM

37
#6630 - levicook / @levicook

11/09/2015 at 07:05PM