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

6732 active golfers, 30402 entries

Leaderboard (lowest score wins):
32
#5311 - Sambor Shellz / @thsowa

08/19/2017 at 06:31PM

32
#5312 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 12:26PM

32
#5313 - Zel / @Zel98836552

09/07/2017 at 06:33PM

32
#5314 - ph1l / @ph1l12

09/12/2017 at 02:19PM

32
#5315 - Charles-Axel Dein / @d3in

09/20/2017 at 10:54AM

32
#5316 - Antonio Sánchez / @asanchezc_h4f

09/28/2017 at 01:28AM

32
#5317 - Rosemary / @up_thyme

10/06/2017 at 08:13PM

32
#5318 - Alexander Gratner / @gratner3

10/12/2017 at 06:30PM

32
#5319 - C / @bravekarma

10/15/2017 at 07:15AM

32
#5320 - Tuomas Järvensivu / @uhef

10/18/2017 at 06:45AM

32
#5321 - Andrew Speed / @Its_Speed

10/21/2017 at 05:04PM

32
#5322 - Piet 🇳🇱 / @pietvanzoen

10/23/2017 at 02:31PM

32
#5323 - Mike Harris / @MikeMJHarris

11/10/2017 at 05:41PM

32
#5324 - paul / @pollpaulack

11/20/2017 at 04:27PM

32
#5325 - JohnnyChen / @JohnnyC57567130

12/08/2017 at 03:16AM

32
#5326 - helper function / @helperfunction_

12/21/2017 at 04:28AM

32
#5327 - Антон Корольков / @Toshegg

12/27/2017 at 03:23PM

32
#5328 - Jérôme Botineau / @TobinoJ

01/15/2018 at 09:38PM

32
#5329 - Ashwin Bhat / @swac

01/31/2018 at 10:55PM

32
#5330 - die_krabbe / @die_krabbe

02/02/2018 at 07:55AM

32
#5331 - Herz3h / @Herz3h

02/03/2018 at 09:08PM

32
#5332 - Josh Taylor / @waterwagen

02/13/2018 at 07:23PM

32
#5333 - sura / @surarusa

02/23/2018 at 05:07AM

32
#5334 - c / @just4vimgolf

03/04/2018 at 01:27AM

32
#5335 - Austin Scott Bricker / @aquova_

03/08/2018 at 05:06PM

32
#5336 - Austin Gundry / @a_gundry

03/16/2018 at 07:31PM

32
#5337 - whincwu / @whincwu

03/22/2018 at 11:55AM

32
#5338 - Paul Draghicescu / @pdragy

03/23/2018 at 12:42AM

32
#5339 - Anonymous / @Anonymous31658

03/27/2018 at 03:00AM

32
#5340 - Dael Vnaja / @daelvn

04/06/2018 at 11:02PM