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

6738 active golfers, 30440 entries

Leaderboard (lowest score wins):
35
#5911 - Bobby Taylor / @Ratthree

05/19/2016 at 03:43PM

35
#5912 - William Mitchell / @TiredOfDoxx

05/20/2016 at 03:11PM

35
#5913 - Elliott Mantock / @elGatoMantocko

06/03/2016 at 01:23PM

35
#5914 - Jon Wade / @jh_wade

06/20/2016 at 03:22PM

35
#5915 - Anton Pidkuiko / @pidkuiko

07/14/2016 at 08:11AM

35
#5916 - Thomas M / @oonska

07/22/2016 at 04:47PM

35
#5917 - Thongrapee / @kulaspa2

07/25/2016 at 04:50AM

35
#5918 - Martin Bielik / @MrMadox2

08/16/2016 at 04:50PM

35
#5919 - James Pringle / @mathbyjames

09/01/2016 at 03:35PM

35
#5920 - Max T / @bear24rw

09/12/2016 at 08:43PM

35
#5921 - Marco Sterbik / @madbadmax00

09/19/2016 at 07:55PM

35
#5922 - Nate Smith / @nwjsmith

09/21/2016 at 06:52PM

35
#5923 - cdrinion / @cdrinion

09/25/2016 at 03:05PM

35
#5924 - Paulo Coelho Alves / @sunlandictwin

09/27/2016 at 12:03PM

35
#5925 - Kyoungchin Seo(서경진) / @jiniseo

10/17/2016 at 01:06PM

35
#5926 - Danny / @dannywood1976

11/25/2016 at 08:00PM

35
#5927 - linovys / @linovys

12/04/2016 at 11:11PM

35
#5928 - Robin Kanters / @RobinKanters

12/07/2016 at 03:26PM

35
#5929 - 白猫(zhu) / @cat2flower

12/15/2016 at 09:55AM

35
#5930 - Тимофей Федянин / @tim06ka

12/18/2016 at 09:40AM

35
#5931 - Alex Moorman / @dabearsxander

01/05/2017 at 11:27PM

35
#5932 - Chris Hughes / @ChristofHughes

01/15/2017 at 08:14PM

35
#5933 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:28AM

35
#5934 - Shreyas / @shreyasjag

03/02/2017 at 08:19PM

35
#5935 - Ben Moss / @mossity

04/06/2017 at 09:26PM

35
#5936 - Summer Dhwoj Acharya / @techgaun

04/19/2017 at 05:59PM

35
#5937 - William Zmiyewski / @zmwilliam

04/21/2017 at 01:45PM

35
#5938 - Thor 🖋💾 / @thorerik

04/25/2017 at 10:37AM

35
#5939 - Kaitlyn 🌹 Tierney / @krtierney

04/26/2017 at 06:45PM

35
#5940 - Nicolás Salas V. / @nicosalasv

05/12/2017 at 06:20AM