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

7241 active golfers, 32765 entries

Leaderboard (lowest score wins):
34
#6151 - Zsolt Majoros / @mzsoltt

07/12/2016 at 03:51PM

34
#6152 - chris howes / @_chrishowes

07/20/2016 at 01:06AM

34
#6153 - Richard_ / @richardwlaub

07/22/2016 at 02:03AM

34
#6154 - saprative / @saprative

07/31/2016 at 02:11PM

34
#6155 - Wasif Iqbal / @mlprobe

08/09/2016 at 03:09AM

34
#6156 - Thomas Versteeg / @versteeg_t

08/10/2016 at 10:14AM

34
#6157 - Antti Kuosmanen ⭐ / @anttiviljami

08/12/2016 at 11:54AM

34
#6158 - Daniel Hallqvist / @dhallqvist

08/15/2016 at 11:24AM

34
#6159 - Nik Sun / @CandySunPlus

08/16/2016 at 06:18AM

34
#6160 - Mikkel Knudsen / @mikk2168

09/27/2016 at 05:37PM

34
#6161 - David Runger / @davidrunger

11/24/2016 at 06:42PM

34
#6162 - Nathan / @nbailey134

12/15/2016 at 02:26AM

34
#6163 - janusz janusz / @januszjanusz20

12/15/2016 at 07:23PM

34
#6164 - Simon Taylor / @SimonTaylorAU

01/27/2017 at 05:42AM

34
#6165 - Mohd Amin Yuddin / @mohdaminyuddin

01/28/2017 at 01:02AM

34
#6166 - Tarcísio Gruppi / @txgruppi

01/28/2017 at 11:25PM

34
#6167 - Michael Redman / @MikeyyRedman

02/22/2017 at 12:16PM

34
#6168 - John Wilson / @Login4anonymity

03/09/2017 at 01:50AM

34
#6169 - Joseph Bonilla / @JosephB95085049

03/20/2017 at 03:18PM

34
#6170 - Bryant Pxp / @pxp_bryant

03/28/2017 at 03:49PM

34
#6171 - あ / @IPgtG4UzG1WejHU

03/29/2017 at 05:05PM

34
#6172 - Jess Martin / @jessmartin

04/12/2017 at 07:23PM

34
#6173 - Kjell De Backer / @k_debacker

04/16/2017 at 04:54PM

34
#6174 - Wanelo / @Wanelo

05/03/2017 at 08:56PM

34
#6175 - Collen Jones / @collenjones

06/01/2017 at 05:49PM

34
#6176 - albert / @albert_xi_cn

06/27/2017 at 08:20AM

34
#6177 - Dave / @junkmailinbox0

07/01/2017 at 09:05AM

34
#6178 - Gilad Oved / @goved12

07/15/2017 at 04:22AM

34
#6179 - Thomas Müller / @ThomasM04279

07/30/2017 at 08:44PM

34
#6180 - Gavin Faris / @gavin_faris

08/24/2017 at 08:16PM