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

7072 active golfers, 32069 entries

Leaderboard (lowest score wins):
40
#6781 - Ken / @veryken12345

10/19/2019 at 02:30PM

40
#6782 - Jack Corley / @JackCorley12

02/23/2020 at 03:05PM

40
#6783 - Hardy Pham / @kozyice

02/27/2020 at 01:54AM

40
#6784 - Malachi Phillips / @Malachi72164202

03/01/2020 at 04:22PM

40
#6785 - brad / @bitsbybrad

03/04/2020 at 03:40AM

40
#6786 - Caio Marcelo / @CaioMCG

04/06/2020 at 02:29AM

40
#6787 - smiller-omg / @OmgSmiller

04/16/2020 at 05:07AM

40
#6788 - Michiel Bakker / @mvbakker

07/31/2020 at 08:37AM

40
#6789 - dezhonger / @dezhonger

08/31/2020 at 05:34PM

40
#6790 - G / @AlphaSeeds

09/06/2020 at 01:47PM

40
#6791 - Muradil / @Muradil71938308

10/20/2020 at 04:13PM

41
#6792 - Matt Steinpreis / @static180

07/29/2015 at 08:17PM

41
#6793 - Keith Mascarenhas / @keithxm23

10/14/2015 at 08:02PM

41
#6794 - Conor Ryan / @conorjryan

10/22/2015 at 05:34AM

41
#6795 - Sean Irby / @sean_irbyy

02/04/2016 at 10:21PM

41
#6796 - 李超 / @lichaorodxx

06/10/2016 at 06:06PM

41
#6797 - Thiago Belem / @TiuTalk

07/18/2016 at 02:06PM

41
#6798 - Loftee Beats / @LofteeIT

11/23/2016 at 02:13AM

41
#6799 - Francisco Granados / @gzfrancisco

04/11/2017 at 08:14PM

41
#6800 - Roman Rom / @VitrukR

04/14/2017 at 11:50AM

41
#6801 - Jarred Dong / @DongJarred

04/28/2017 at 09:25AM

41
#6802 - Levi Jarick / @Ubeek

09/20/2017 at 01:55AM

41
#6803 - Daniel Moulton / @Iammandolten

10/12/2017 at 07:55PM

41
#6804 - catafilios / @catafilios

10/31/2017 at 01:32PM

41
#6805 - Lucas Pugliesi / @ferreiraplucas

02/16/2018 at 11:02AM

41
#6806 - Christopher Brown / @SwankyPenguin

03/12/2018 at 11:55PM

41
#6807 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:34PM

41
#6808 - Dmitry Ilyin / @widgetii

05/05/2018 at 06:12PM

41
#6809 - Jake B / @jakebyman

05/11/2018 at 09:04PM

41
#6810 - hillsprig / @hillsprig

06/27/2018 at 08:15AM