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

6738 active golfers, 30440 entries

Leaderboard (lowest score wins):
32
#5431 - Jun Isaji / @Jisaji

08/31/2019 at 04:06PM

32
#5432 - p unknowns h / @unknownsh

09/19/2019 at 03:34PM

32
#5433 - Joshua Grosso / @JoshuaGrosso

09/24/2019 at 09:12PM

32
#5434 - David B. / @dblanken

09/30/2019 at 02:59PM

32
#5435 - Serpentri / @Serpentri1

10/01/2019 at 05:28PM

32
#5436 - Caleb Rogers / @komali_2

10/14/2019 at 01:58PM

32
#5437 - mnaufal75 / @mnaufal75

10/18/2019 at 03:49PM

32
#5438 - Bruno Machado / @brunosmmachado

10/19/2019 at 05:22PM

32
#5439 - Yasky / @Yaasky

10/21/2019 at 05:22PM

32
#5440 - Konstantinos / @karampok

10/24/2019 at 12:56PM

32
#5441 - Beppo / @b3pp00

10/28/2019 at 12:35PM

32
#5442 - Keith Klassen / @Collegekid491

11/02/2019 at 08:02PM

32
#5443 - aaa / @aaa09223304

11/07/2019 at 07:48AM

32
#5444 - kep / @kep20093456

11/13/2019 at 01:20PM

32
#5445 - Alexey Kulichevskiy / @smysl

11/14/2019 at 12:20PM

32
#5446 - Rudy Hasbun / @rudyhasbun

11/15/2019 at 04:50PM

32
#5447 - FaeFeyFa / @fae_fey

11/19/2019 at 04:17AM

32
#5448 - Spencer Stolworthy / @sdstolworthy1

12/01/2019 at 06:39PM

32
#5449 - vim_golfer_1 / @vimgolfer12

12/02/2019 at 03:11AM

32
#5450 - akhil maskery / @mask34056915821

12/10/2019 at 02:20AM

32
#5451 - Paul Roever / @proever

12/20/2019 at 01:17AM

32
#5452 - John Kevin Estrella / @kevsestrella

01/06/2020 at 04:07PM

32
#5453 - Kosmos / @Kosmos11357841

01/17/2020 at 03:39AM

32
#5454 - jackjsk / @jackjsk1

01/17/2020 at 04:01AM

32
#5455 - ians_vim_golf / @IansVim

01/24/2020 at 10:52AM

32
#5456 - James Walmsley / @JamesWalms

01/24/2020 at 11:03PM

32
#5457 - 鏡崎ましろ / @KagamisakiMsr

01/27/2020 at 07:05AM

32
#5458 - Jon Crowe / @joncrowe

01/27/2020 at 01:36PM

32
#5459 - mase / @ThiccMase

01/31/2020 at 05:45PM

32
#5460 - Matthew Karcher / @mattrfk

02/05/2020 at 05:38AM