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

7073 active golfers, 32070 entries

Leaderboard (lowest score wins):
39
#6721 - George Horrell / @gwphorrell

05/22/2018 at 08:46PM

39
#6722 - t0k1ko / @t0k1ko

06/01/2018 at 10:15AM

39
#6723 - Max Becker / @myfriendthedog

06/23/2018 at 12:56AM

39
#6724 - Seth McLaughlin / @sethmc

07/30/2018 at 11:27PM

39
#6725 - Medin / @TheMedin

10/04/2018 at 10:19AM

39
#6726 - Piet / @piet2228

11/16/2018 at 01:49AM

39
#6727 - Robert Xu / @RobertX97592288

11/29/2018 at 01:16AM

39
#6728 - Daniel Gleason / @DanielG_PV

11/30/2018 at 07:08PM

39
#6729 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 06:33AM

39
#6730 - Oddwel / @Oddwel

03/03/2019 at 10:52PM

39
#6731 - Marcus Ericsson / @mericsson

03/15/2019 at 06:01PM

39
#6732 - Raúl Cumplido / @raulcumplido

03/19/2019 at 02:51PM

39
#6733 - 2643850253487204725 / @WtnLCDcSaGGEP8t

03/21/2019 at 06:03AM

39
#6734 - imnottheonlyspy / @imnottheonlyspy

04/25/2019 at 12:35PM

39
#6735 - ざーなか / @zanakax

05/08/2019 at 11:28AM

39
#6736 - Samuel Cherukutty C / @cc_samuel

05/27/2019 at 02:25PM

39
#6737 - Jessica Kraft / @JessicaKraft19

06/26/2019 at 01:43AM

39
#6738 - Ben Fisher / @mrbenfisher

07/20/2019 at 05:55AM

39
#6739 - Joe Previte 🦀 / @jsjoeio

09/05/2019 at 03:38PM

39
#6740 - NotJohnSmith99 / @NotSmith99

12/15/2019 at 06:14PM

39
#6741 - Yathusihan / @yathusihan

01/02/2020 at 05:22AM

39
#6742 - Уujin / @yujinyuz_

01/22/2020 at 01:41PM

39
#6743 - Logan Dolechek / @LoganDolechek

01/23/2020 at 10:16PM

39
#6744 - Diane Manière / @dianemaniere

01/26/2020 at 02:09PM

39
#6745 - gino / @imGinoW

05/21/2020 at 03:38PM

39
#6746 - 蔣昀劭 / @hjtiun852

09/01/2020 at 01:53AM

39
#6747 - abhijeet patil / @abhijeetptl5

09/02/2020 at 04:37PM

39
#6748 - 伟哥 / @w15659018558

09/12/2020 at 06:25AM

39
#6749 - 𝙲𝚊𝚟𝚊𝚗 𝚆𝚊𝚐𝚐 / @cavankwagg

11/28/2020 at 06:06PM

40
#6750 - Alexandros Ntoulas / @ntoulas

08/28/2015 at 07:03PM