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

7239 active golfers, 32758 entries

Leaderboard (lowest score wins):
36
#6631 - Konrad Heidler / @koheidler

10/02/2020 at 09:32AM

36
#6632 - lp / @loserprance

11/01/2020 at 04:28AM

36
#6633 - tyuktu / @tyuk_tu

11/20/2020 at 02:54AM

36
#6634 - Darren Inglis 🌱 / @IndieGardener

12/26/2020 at 07:47AM

36
#6635 - Wojciech Matuszewski / @wm_matuszewski

01/03/2021 at 05:27AM

36
#6636 - variable-pitch-mode / @ModePitch

01/04/2021 at 03:17AM

36
#6637 - Nandre / @nandre42

01/20/2021 at 01:05PM

36
#6638 - adamdiel / @kipmix

01/23/2021 at 06:08PM

36
#6639 - Tracing / @Tracing47202686

03/18/2021 at 07:17AM

36
#6640 - Jens Junker Pedersen / @junker_jens

05/02/2021 at 11:15AM

37
#6641 - 0xEE / @ejcx_

09/18/2015 at 11:13PM

37
#6642 - levicook / @levicook

11/09/2015 at 07:05PM

37
#6643 - โป๊งเหน่ง.js / @biiterlove

12/08/2015 at 05:04AM

37
#6644 - Justyna Rachowicz / @mrowa44

12/24/2015 at 01:09PM

37
#6645 - Stas Karpov / @dragothefiery

02/18/2016 at 09:37AM

37
#6646 - reyonman / @reyonman

02/24/2016 at 11:11PM

37
#6647 - Ryan Diaz / @RyanDiaz18

03/26/2016 at 04:25AM

37
#6648 - Thenix Down / @thenixdown

04/20/2016 at 03:38PM

37
#6649 - Ramon Sanabria / @Sanabria_RST

05/30/2016 at 12:24AM

37
#6650 - Ganesh Datta / @gsdatta

06/05/2016 at 06:23AM

37
#6651 - Tsing Gu / @TsingGu

08/16/2016 at 03:28PM

37
#6652 - Brian Cantrell / @briancantrell

09/01/2016 at 07:41PM

37
#6653 - Tom Sun / @tomsun100

10/05/2016 at 02:13AM

37
#6654 - Никита Дячина / @RuBJSRh6WrdykDI

10/23/2016 at 12:45PM

37
#6655 - Dmitri Tchebotarev / @dmitri_t

10/27/2016 at 04:43AM

37
#6656 - Rahul Gupta 🎹 / @pezcoder

11/11/2016 at 07:06PM

37
#6657 - Luis Rascão / @lrascao

11/13/2016 at 01:33AM

37
#6658 - 21389104298208943812 / @j1359534

12/12/2016 at 10:34PM

37
#6659 - Nate Casale / @Castallion

02/22/2017 at 05:41PM

37
#6660 - Kevin K / @okkays

04/17/2017 at 08:20PM