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

6059 active golfers, 27223 entries

Leaderboard (lowest score wins):
35
#5311 - Vinayak Kaushik / @theubermanshere

09/12/2015 at 02:20PM

35
#5312 - Alexandre Jouandin / @Allezxandre

09/22/2015 at 11:11AM

35
#5313 - Felix Maxwell / @felix_maxwell

09/26/2015 at 09:28PM

35
#5314 - ddevil / @ddevil

10/02/2015 at 02:59PM

35
#5315 - ggdGiBork:3^[:wq / @CopperBadger

10/06/2015 at 12:34AM

35
#5316 - Cable Benjamin / @LadyDascalie

10/18/2015 at 02:47PM

35
#5317 - Max Jacobson / @maxjacobson

10/29/2015 at 02:47AM

35
#5318 - Tomás Pérez / @tomasperezv

11/08/2015 at 09:31AM

35
#5319 - Chris Burgess / @xurizaemon

11/29/2015 at 10:41AM

35
#5320 - Christopher Wells / @ExcaliburZero_Z

12/05/2015 at 04:58AM

35
#5321 - Alexander Ryzhikov / @Coobaha

01/05/2016 at 02:09PM

35
#5322 - CJ Apel / @cj_apel

01/20/2016 at 03:25AM

35
#5323 - arcangelzgz / @arcangelzgz

02/18/2016 at 06:47PM

35
#5324 - Aviv Cukierman / @AvivCukierman

02/26/2016 at 10:01PM

35
#5325 - alekseiKO / @alekseiKO

04/26/2016 at 02:54PM

35
#5326 - danny Lazarow / @dannylazarow

04/30/2016 at 10:32AM

35
#5327 - Markus A. Roth / @Markus_Roth

05/02/2016 at 01:10PM

35
#5328 - Gummibjorn / @EgliMario

05/03/2016 at 10:53AM

35
#5329 - Marc Seibert / @interzone_cc

05/04/2016 at 03:46PM

35
#5330 - Dexter Lohnes / @dangerdex

05/14/2016 at 04:43PM

35
#5331 - Bobby Taylor / @Ratthree

05/19/2016 at 03:43PM

35
#5332 - William Mitchell / @TiredOfDoxx

05/20/2016 at 03:11PM

35
#5333 - Elliott Mantock / @elGatoMantocko

06/03/2016 at 01:23PM

35
#5334 - Jon Wade / @jh_wade

06/20/2016 at 03:22PM

35
#5335 - Anton Pidkuiko / @pidkuiko

07/14/2016 at 08:11AM

35
#5336 - Thomas M / @oonska

07/22/2016 at 04:47PM

35
#5337 - Thongrapee / @kulaspa2

07/25/2016 at 04:50AM

35
#5338 - Martin Bielik / @MrMadox2

08/16/2016 at 04:50PM

35
#5339 - James Pringle / @mathbyjames

09/01/2016 at 03:35PM

35
#5340 - Max T / @bear24rw

09/12/2016 at 08:43PM