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

7241 active golfers, 32773 entries

Leaderboard (lowest score wins):
45
#7081 - Elliot Harik / @ElliotHarik

08/25/2018 at 12:59AM

45
#7082 - Connor Kirkpatrick / @ConnorKP

02/16/2019 at 08:49AM

45
#7083 - Sean Curtis / @SeanPCurtis

04/24/2019 at 10:58PM

45
#7084 - Kyle Derosha / @KyleDerosha

12/05/2019 at 09:22PM

45
#7085 - sunny / @pooisonner

05/27/2020 at 06:40AM

46
#7086 - Tareq Fadel / @DeltaWorld

06/09/2016 at 12:49PM

46
#7087 - Dorian C. Brown / @DorianCBrwn

08/30/2016 at 05:44AM

46
#7088 - Dezmand Oliveira / @DezmandOliveira

12/11/2016 at 04:37PM

46
#7089 - Jessie Daubner / @jessdaubner

02/06/2017 at 02:40AM

46
#7090 - nobodyzxc / @nobodyzxc1

02/17/2017 at 01:46AM

46
#7091 - Vincent Le / @Vinnyoodles

07/02/2017 at 03:47AM

46
#7092 - OutLawCity / @th3b1rd1sth3w02

07/11/2017 at 02:30AM

46
#7093 - Luc Zwanenberg / @luc_zwanenberg

07/19/2018 at 01:48PM

46
#7094 - rhae / @amaceda

04/25/2019 at 03:01PM

46
#7095 - Nathan Bennett / @njbennett95

06/17/2019 at 08:26AM

46
#7096 - LukasK / @LukasK21233410

01/01/2020 at 11:34PM

46
#7097 - Connor / @robotboy_69

01/31/2020 at 02:56AM

46
#7098 - Ivan Levcovitz / @ivanlevcovitz

03/13/2020 at 11:50PM

46
#7099 - Dr. Bharat Bhushan Verma / @dearbharat1

06/01/2020 at 02:18PM

46
#7100 - 柳木潇湘 / @vQ8GMOdomggIuM4

06/27/2020 at 01:44PM

46
#7101 - 1 / @Shafouz

08/30/2020 at 10:17PM

46
#7102 - dzungtran / @dzungtran89

09/19/2020 at 02:06AM

47
#7103 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 07:38AM

47
#7104 - vimmgolf / @marcusbfs

06/26/2016 at 07:37PM

47
#7105 - Chris Chou / @chhschou

07/07/2017 at 04:48AM

47
#7106 - みんな違ってみんな悪い / @sai_kyouto

07/30/2017 at 02:48PM

47
#7107 - Abhiram Mullapudi / @mullapudi_7

11/26/2017 at 12:45AM

47
#7108 - LeeSue / @liarchtt

04/06/2018 at 07:21AM

47
#7109 - Sophie Stadler / @sophstad

11/01/2018 at 09:41PM

47
#7110 - Ang Wei Neng / @weineng96

11/24/2018 at 03:52PM