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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
40
#7111 - Max Odnoletkov / @ezlx

07/29/2018 at 11:03AM

40
#7112 - DolaBMOon / @DolaBMOon2002

08/27/2018 at 11:59AM

40
#7113 - Alin Pisica / @alinp25

09/01/2018 at 08:10AM

40
#7114 - James / @mulholio

09/09/2018 at 11:32AM

40
#7115 - Valeriy Pushkar / @valeriy_pushkar

10/15/2018 at 12:57PM

40
#7116 - urandom / @ttyrandom

10/19/2018 at 02:44PM

40
#7117 - Laurent Chenay / @My_Sic

11/07/2018 at 09:10AM

40
#7118 - Wadikur Rahman / @Wadikur

11/11/2018 at 02:35PM

40
#7119 - Rébecca.A / @moon_xiel

11/15/2018 at 11:00AM

40
#7120 - Alice / @Alice23119354

01/08/2019 at 10:21AM

40
#7121 - Michiyo / @minikaiju

05/15/2019 at 02:57PM

40
#7122 - Andy Gnias / @GniTheSciGuy

06/24/2019 at 01:08AM

40
#7123 - Daniel Son / @DanielS30821585

06/28/2019 at 06:01PM

40
#7124 - Ken / @veryken12345

10/19/2019 at 02:30PM

40
#7125 - Jack Corley / @JackCorley12

02/23/2020 at 03:05PM

40
#7126 - Hardy Pham / @kozyice

02/27/2020 at 01:54AM

40
#7127 - Malachi Phillips / @Malachi72164202

03/01/2020 at 04:22PM

40
#7128 - brad / @bitsbybrad

03/04/2020 at 03:40AM

40
#7129 - Caio Marcelo / @CaioMCG

04/06/2020 at 02:29AM

40
#7130 - smiller-omg / @OmgSmiller

04/16/2020 at 05:07AM

40
#7131 - Michiel Bakker / @mvbakker

07/31/2020 at 08:37AM

40
#7132 - dezhonger / @dezhonger

08/31/2020 at 05:34PM

40
#7133 - G / @AlphaSeeds

09/06/2020 at 01:47PM

40
#7134 - Muradil / @MuradilUdun

10/20/2020 at 04:13PM

40
#7135 - Kevin Linnane / @linnanekevin07

12/30/2020 at 09:54PM

40
#7136 - tylertucker202 / @tylertucker202

01/15/2021 at 09:47PM

40
#7137 - mandophysics / @mandophysics

02/19/2021 at 06:23PM

40
#7138 - Aleksandar Hadzhiyski / @aleksandar_had

03/24/2021 at 02:15PM

40
#7139 - nodeselector / @nodeselector

04/29/2021 at 04:59AM

40
#7140 - Suraj Kumar / @kumarsuraj512

09/23/2024 at 01:14PM