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

7276 active golfers, 32962 entries

Leaderboard (lowest score wins):
41
#6991 - Loftee Beats / @LofteeIT

11/23/2016 at 02:13AM

41
#6992 - Francisco Granados / @gzfrancisco

04/11/2017 at 08:14PM

41
#6993 - Roman Rom / @VitrukR

04/14/2017 at 11:50AM

41
#6994 - Jarred Dong / @DongJarred

04/28/2017 at 09:25AM

41
#6995 - Levi Jarick / @Ubeek

09/20/2017 at 01:55AM

41
#6996 - Daniel Moulton / @Iammandolten

10/12/2017 at 07:55PM

41
#6997 - catafilios / @catafilios

10/31/2017 at 01:32PM

41
#6998 - Lucas Pugliesi / @ferreiraplucas

02/16/2018 at 11:02AM

41
#6999 - Christopher Brown / @SwankyPenguin

03/12/2018 at 11:55PM

41
#7000 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:34PM

41
#7001 - Dmitry Ilyin / @widgetii

05/05/2018 at 06:12PM

41
#7002 - Jake B / @jakebyman

05/11/2018 at 09:04PM

41
#7003 - hillsprig / @hillsprig

06/27/2018 at 08:15AM

41
#7004 - 황철호 / @horndart

07/31/2018 at 12:38PM

41
#7005 - BanyRule / @BanyRule

08/04/2018 at 08:44PM

41
#7006 - JgITa169R4OdoJxLFG2J / @ITa169

09/24/2018 at 10:51AM

41
#7007 - Jeremiah Buchanan / @JeremiahElder

10/29/2018 at 09:28PM

41
#7008 - Jonathan Thomas / @jonathoma

12/28/2018 at 05:43AM

41
#7009 - projectDx / @Noritor

02/19/2019 at 11:39AM

41
#7010 - Eric Kohn / @EKohn10

03/14/2019 at 02:51PM

41
#7011 - Lev / @LevRado

03/28/2019 at 04:11PM

41
#7012 - Matthias Kausl / @sig_segv

04/22/2019 at 02:37PM

41
#7013 - lilicoco / @lilicoco20

04/26/2019 at 11:19PM

41
#7014 - Karadais Panagiotis / @pkaradais

07/17/2019 at 11:29AM

41
#7015 - Matt / @mckornfield

12/03/2019 at 02:28PM

41
#7016 - Brian Bugieda / @BBugieda

10/01/2020 at 06:38PM

41
#7017 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 02:14PM

41
#7018 - Max Wagner / @MaxWagn82999438

01/22/2021 at 10:58PM

41
#7019 - Sam Clark / @samrocksc

02/16/2022 at 07:25AM

42
#7020 - caleb barde / @BardeCaleb

12/22/2015 at 06:13AM