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

Leaderboard (lowest score wins):
34
#6181 - Mathias Dahlhaus / @mgdahlhaus

08/25/2017 at 02:10PM

34
#6182 - German Robayo Paz / @germanrobayo33

08/25/2017 at 10:25PM

34
#6183 - Thomas Royer / @Cydonia7

09/14/2017 at 03:30PM

34
#6184 - Daniel / @djacobs7

09/19/2017 at 07:40PM

34
#6185 - Craig Ramey / @TheRamey

10/04/2017 at 04:12PM

34
#6186 - Giovanni Benussi / @giovannibenussi

10/10/2017 at 06:48PM

34
#6187 - vlaw / @wentao

11/10/2017 at 08:42AM

34
#6188 - SumOfAllN00bs / @SumOfAllN00bs

11/21/2017 at 09:22PM

34
#6189 - Ryan Miller / @andRyanMiller

12/12/2017 at 09:54PM

34
#6190 - Vimgolfer-throwaway / @vim_throwaway

12/19/2017 at 12:58PM

34
#6191 - ben / @benb_123

01/09/2018 at 04:34AM

34
#6192 - Benno Fünfstück / @bennofus

01/30/2018 at 11:31AM

34
#6193 - Lalit Kumar / @lalitmee

02/09/2018 at 08:56PM

34
#6194 - Boris Makogonyuk / @BoroMak

02/26/2018 at 08:31AM

34
#6195 - Tulsi Sapkota / @sapkota_tolsee

04/23/2018 at 06:28AM

34
#6196 - Hunter Schafer / @HunterSchafer

05/03/2018 at 07:23AM

34
#6197 - Luke Lee / @luke0201

05/05/2018 at 07:59AM

34
#6198 - Jerry / @GarrisonwuJerry

05/22/2018 at 02:57PM

34
#6199 - tue2truong / @tue2truong1

05/25/2018 at 12:35PM

34
#6200 - Kanyeh West / @kanyeh_west

07/14/2018 at 12:21AM

34
#6201 - Aaron Rosenwinkel / @AaronRosenwinke

07/17/2018 at 02:00PM

34
#6202 - cliffroared / @cliffroared

07/17/2018 at 09:03PM

34
#6203 - Paul Egy / @egy_paul

07/24/2018 at 10:15PM

34
#6204 - The9ain / @the9ain

08/03/2018 at 01:48AM

34
#6205 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:18AM

34
#6206 - Frank Rifk / @r1fk

08/25/2018 at 10:15PM

34
#6207 - mgbellaire / @mgbellaire

08/31/2018 at 06:38PM

34
#6208 - Samidhya Sarker / @desertSniper87

09/06/2018 at 12:32PM

34
#6209 - nick / @Xp_Bar

09/12/2018 at 02:55AM

34
#6210 - konankun / @__konankun

09/17/2018 at 03:22PM