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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
38
#6661 - Christopher Powroznik / @Metroxe

05/21/2019 at 07:10PM

38
#6662 - Ronnapob Ritprasert / @Ronnabop

07/07/2019 at 05:27AM

38
#6663 - rb / @rbinyyz

07/20/2019 at 01:14AM

38
#6664 - siledUp / @siledev1

07/22/2019 at 10:10PM

38
#6665 - coelacanth / @coelacanthco

10/10/2019 at 03:47PM

38
#6666 - Jared / @Jared86407153

10/17/2019 at 02:49AM

38
#6667 - damien / @GreatTestyTest

11/10/2019 at 06:30PM

38
#6668 - Timo Böhm / @TimoBohm

11/24/2019 at 06:33PM

38
#6669 - Harsil Patel / @harsilspatel

12/08/2019 at 06:05AM

38
#6670 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:24PM

38
#6671 - Christoper Glenn / @CToto93

12/16/2019 at 09:06PM

38
#6672 - Max Thomas / @eitas

12/27/2019 at 05:33PM

38
#6673 - Jan Balangue / @jbalang

12/28/2019 at 04:40AM

38
#6674 - kindarian / @kindarian

12/30/2019 at 03:24PM

38
#6675 - Daniel Johnston / @Dan8720Dj

01/21/2020 at 06:20PM

38
#6676 - Mikhail Logachev / @MikhailLogachev

02/06/2020 at 09:25AM

38
#6677 - tawsbaws / @tawsbaws1

02/09/2020 at 09:21PM

38
#6678 - Rahul Sathanapalli / @RahulSat98

05/17/2020 at 08:44AM

38
#6679 - Vishal Chauhan / @vishalc99111

06/07/2020 at 03:20PM

38
#6680 - hansim / @hanstartup

06/15/2020 at 04:25AM

38
#6681 - Isaac Pohl-Zaretsky / @IsaacPZZ

06/15/2020 at 05:10AM

38
#6682 - infinitesimal being 🎮 / @hydr063n

06/20/2020 at 06:53PM

38
#6683 - s4k4yume / @s4k4yume1

06/25/2020 at 07:59PM

38
#6684 - Wissamu / @wissamu

06/28/2020 at 05:59AM

38
#6685 - Alejandro / @AlejandroE

07/19/2020 at 04:43PM

38
#6686 - binayak tiwari / @bintiw

08/03/2020 at 01:18AM

38
#6687 - Riley Kong / @kong_riley

08/11/2020 at 05:46AM

38
#6688 - Fransis / @fransisnk

09/23/2020 at 10:08PM

38
#6689 - Ang / @PangiiElm

10/26/2020 at 12:35AM

38
#6690 - pr3c0g / @pr3c0g

11/18/2020 at 02:58PM