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, 33647 entries

Leaderboard (lowest score wins):
58
#7381 - Unityお姉さん♡ / @unichan___

06/10/2016 at 04:42AM

58
#7382 - ᥬ👨‍🦲᭄ / @atu_hage

04/18/2023 at 11:33AM

59
#7383 - Mick Niepoth / @mickniepoth

10/27/2017 at 02:00PM

59
#7384 - e / @thestudygoddess

11/16/2020 at 05:50AM

60
#7385 - vsevolod / @vsevolodorlov

01/27/2016 at 07:46AM

60
#7386 - marcel novotny / @Marcelmarnov

03/19/2018 at 06:06PM

60
#7387 - David / @davidrft

03/22/2018 at 09:23PM

60
#7388 - minercrafterbla / @minercrafterbla

04/21/2020 at 09:27PM

61
#7389 - Radoslav Ivanov / @rivanov1

09/15/2015 at 12:03AM

61
#7390 - Mark Miranda / @notmarkmiranda

02/07/2017 at 10:37PM

62
#7391 - anass belcaid / @anassbelcaid1

05/01/2020 at 08:07PM

62
#7392 - Alon Samuel / @AlonSamuel1

10/31/2020 at 02:48PM

63
#7393 - Krystle / @krystle_test

05/17/2017 at 06:36AM

63
#7394 - junkemail9733 / @junkemail9733

06/08/2018 at 11:03PM

63
#7395 - Huynh Thao / @DuS2Thao

07/22/2018 at 02:54PM

64
#7396 - shellfire32 / @shellfire32

11/25/2016 at 01:52PM

64
#7397 - Giorgi Gagoshidze / @Nacarqeq1a

12/26/2017 at 02:06PM

64
#7398 - Frank Chou / @FrankChou7

02/27/2018 at 06:20PM

64
#7399 - Martin Kirilov / @realMart9n

05/27/2019 at 03:54PM

65
#7400 - Bamdad Dashtban / @bamdad

04/22/2017 at 08:34PM

65
#7401 - White_Rabbit / @blindcop

05/15/2017 at 01:49PM

66
#7402 - Christofer Ärleryd / @carleryd

09/26/2015 at 03:19PM

66
#7403 - vantieghem sylvain / @vantieghemsylv1

11/14/2018 at 12:59PM

67
#7404 - Herk / @herkiejerky

01/30/2016 at 11:27PM

69
#7405 - Jack Keller / @jacknumbernine

12/22/2015 at 02:35AM

69
#7406 - Jack O'Brien / @The_BC_Studio

09/18/2018 at 06:52PM

69
#7407 - Melancias / @devianalex

05/24/2019 at 05:24PM

70
#7408 - Ricardo Morais / @moraispgsi

03/19/2017 at 06:53PM

72
#7409 - jiarenlu / @jiarenlu

11/15/2019 at 02:59AM

73
#7410 - Josh Linton / @JoshHLinton

10/11/2017 at 03:19AM