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

7425 active golfers, 33648 entries

Leaderboard (lowest score wins):
22
#1591 - AKYS / @G0G0BIKE

12/27/2018 at 12:38AM

22
#1592 - igtm / @igctmkt

12/27/2018 at 01:50AM

22
#1593 - Josep #Dempeus / @jm_s_p

12/27/2018 at 03:35PM

22
#1594 - Visualizing Medicine / @VisualizeMed

12/27/2018 at 09:11PM

22
#1595 - approx / @approx54525066

12/27/2018 at 11:19PM

22
#1596 - Walker Boh / @walker_boh

12/28/2018 at 06:01PM

22
#1597 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

12/28/2018 at 11:41PM

22
#1598 - Daniel K. / @lan4k

12/29/2018 at 02:37PM

22
#1599 - Jan Liu / @Jagsomarjan

12/29/2018 at 08:07PM

22
#1600 - Jota / @rjjota

12/30/2018 at 02:51AM

22
#1601 - Aditya Hegde / @adishegde

12/30/2018 at 05:31AM

22
#1602 - Nate / @natedoran

12/31/2018 at 11:55PM

22
#1603 - Aru / @IAmAru

01/01/2019 at 03:16AM

22
#1604 - antoine mas / @aneomas

01/05/2019 at 07:35PM

22
#1605 - drswaghawk / @drswaghawk

01/06/2019 at 05:30AM

22
#1606 - Fl4t / @Fl4t

01/06/2019 at 10:28PM

22
#1607 - Jonas / @ex1c

01/07/2019 at 03:48PM

22
#1608 - Martin Bohnenblust / @TheRealBohni

01/07/2019 at 06:21PM

22
#1609 - たくみー(転職ドラシル) / @reirei_As

01/08/2019 at 07:05AM

22
#1610 - pankaj singh / @pankajsingh013

01/11/2019 at 02:35PM

22
#1611 - Dan Yeaw / @danyeaw

01/12/2019 at 02:40AM

22
#1612 - Mario Olofo / @mario_olofo

01/12/2019 at 06:46PM

22
#1613 - Oleg Marakhovsky / @OMarakhovsky

01/13/2019 at 10:27PM

22
#1614 - tenteke / @kuskus3

01/14/2019 at 12:22AM

22
#1615 - Mangeart Yoric / @yoricm

01/14/2019 at 12:37PM

22
#1616 - Szkieletor / @gh_end_

01/16/2019 at 10:27AM

22
#1617 - py / @py97235249

01/16/2019 at 02:56PM

22
#1618 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:51PM

22
#1619 - Ninja Knife / @iNinjaknife

01/17/2019 at 10:48PM

22
#1620 - Stefano Bettani / @StefanoBettani

01/19/2019 at 02:16PM