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):
38
#6991 - nicholas joaquin / @thiccboi98

04/17/2019 at 08:12PM

38
#6992 - 沸腾钢 / @tobecloud

04/19/2019 at 08:23AM

38
#6993 - Abraham NM / @abrahamnm

05/15/2019 at 02:03AM

38
#6994 - Christopher Powroznik / @Metroxe

05/21/2019 at 07:10PM

38
#6995 - Ronnapob Ritprasert / @Ronnabop

07/07/2019 at 05:27AM

38
#6996 - rb / @rbinyyz

07/20/2019 at 01:14AM

38
#6997 - siledUp / @siledev1

07/22/2019 at 10:10PM

38
#6998 - coelacanth / @coelacanthco

10/10/2019 at 03:47PM

38
#6999 - Jared / @Jared86407153

10/17/2019 at 02:49AM

38
#7000 - damien / @GreatTestyTest

11/10/2019 at 06:30PM

38
#7001 - Timo Böhm / @TimoBohm

11/24/2019 at 06:33PM

38
#7002 - Harsil Patel / @harsilspatel

12/08/2019 at 06:05AM

38
#7003 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:24PM

38
#7004 - Christoper Glenn / @CToto93

12/16/2019 at 09:06PM

38
#7005 - Max Thomas / @eitas

12/27/2019 at 05:33PM

38
#7006 - Jan Balangue / @jbalang

12/28/2019 at 04:40AM

38
#7007 - kindarian / @kindarian

12/30/2019 at 03:24PM

38
#7008 - Daniel Johnston / @Dan8720Dj

01/21/2020 at 06:20PM

38
#7009 - Mikhail Logachev / @MikhailLogachev

02/06/2020 at 09:25AM

38
#7010 - tawsbaws / @tawsbaws1

02/09/2020 at 09:21PM

38
#7011 - Rahul Sathanapalli / @RahulSat98

05/17/2020 at 08:44AM

38
#7012 - Vishal Chauhan / @vishalc99111

06/07/2020 at 03:20PM

38
#7013 - hansim / @hanstartup

06/15/2020 at 04:25AM

38
#7014 - Isaac Pohl-Zaretsky / @IsaacPZZ

06/15/2020 at 05:10AM

38
#7015 - infinitesimal being 🎮 / @hydr063n

06/20/2020 at 06:53PM

38
#7016 - s4k4yume / @s4k4yume1

06/25/2020 at 07:59PM

38
#7017 - Wissamu / @wissamu

06/28/2020 at 05:59AM

38
#7018 - Alejandro / @AlejandroE

07/19/2020 at 04:43PM

38
#7019 - binayak tiwari / @bintiw

08/03/2020 at 01:18AM

38
#7020 - Riley Kong / @kong_riley

08/11/2020 at 05:46AM