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

6616 active golfers, 29871 entries

Leaderboard (lowest score wins):
37
#6151 - amtramos / @amtramos

05/30/2019 at 01:52AM

37
#6152 - Mike Fang / @MikeFang20

06/05/2019 at 02:02AM

37
#6153 - Anh / @Anh87554000

06/21/2019 at 12:49AM

37
#6154 - Crystal L / @Cartsly

07/13/2019 at 07:33PM

37
#6155 - Ryan Baker / @RyanTehBaker

07/17/2019 at 06:49PM

37
#6156 - wwilkins / @wwilkins

07/24/2019 at 12:14AM

37
#6157 - Ishan Khanna / @droidchef

08/30/2019 at 02:41PM

37
#6158 - Vincent Maladière / @maladiere

09/09/2019 at 01:59PM

37
#6159 - Satish Maurya / @maurya777

10/11/2019 at 02:35AM

37
#6160 - bluehand / @bluehan73169389

10/12/2019 at 04:21AM

37
#6161 - Sander Roosingh / @sjroosingh

10/14/2019 at 03:04PM

37
#6162 - Nick Shatilo / @bestervuld

11/07/2019 at 08:30PM

37
#6163 - Adriaan / @abeiertz

11/08/2019 at 02:57PM

37
#6164 - Maximiliano Greco / @mmngreco

11/09/2019 at 08:43PM

37
#6165 - Aaron Harris / @TheJoyOfPython

12/01/2019 at 04:57PM

37
#6166 - Username77177 / @username77177

01/17/2020 at 08:34PM

37
#6167 - Eric Robinson / @drericrobinson

02/21/2020 at 03:51AM

37
#6168 - Alex Rossi / @rxrossi

03/19/2020 at 12:14PM

37
#6169 - Osama Abdelsatar / @Osa_ahlawy

03/20/2020 at 11:36PM

37
#6170 - Philip R. Rothschild / @Kitten_Popo

04/01/2020 at 11:51AM

37
#6171 - 5h3ll0 / @5h3ll0

04/02/2020 at 09:59AM

37
#6172 - 3vilc00kie / @3vilc00kie

04/25/2020 at 04:57AM

37
#6173 - Adam Haynes / @camomonkeyboy

05/08/2020 at 12:10AM

37
#6174 - Brian Greenhill / @bcgreenhill

05/15/2020 at 12:37PM

37
#6175 - Richard Bagshaw / @bagwaa

05/16/2020 at 06:07PM

38
#6176 - Jeevan M R / @jee1mr

10/08/2015 at 08:33PM

38
#6177 - Tommy Lee / @Tomcentrate

10/13/2015 at 09:15PM

38
#6178 - Benedict Hobart / @superbenhobart

10/26/2015 at 05:50AM

38
#6179 - amol khatri / @khatri_amol

11/01/2015 at 05:40AM

38
#6180 - Javier Rey / @vierja

11/14/2015 at 12:17AM