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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
37
#6871 - Kath Pobee-Norris / @KathPobeeNorris

11/07/2018 at 11:26AM

37
#6872 - Rui Ming Xiong / @RuiMingXiong1

11/11/2018 at 07:01PM

37
#6873 - martin aurelien / @martinaurelien5

11/14/2018 at 10:17AM

37
#6874 - Cole Hudson / @colejhudson

11/21/2018 at 05:37PM

37
#6875 - Oliver Wilkie / @oliwilks

11/29/2018 at 01:23AM

37
#6876 - Michael Thole / @mikethole

11/29/2018 at 01:23AM

37
#6877 - Oren Koriat / @KoriatOren

12/04/2018 at 04:13PM

37
#6878 - Calvin / @calveenlee

01/10/2019 at 06:00PM

37
#6879 - Casey Kalinowski / @Mediocre__Fred

01/16/2019 at 08:22PM

37
#6880 - m͈͕͇̙̻ͅa͎͍̩̼͈͙͔͜u̶̺s / @maus_

02/15/2019 at 07:09AM

37
#6881 - Nyarklathotep / @MaSalieri

02/18/2019 at 09:42PM

37
#6882 - sloppypapi / @sloppypapi5

02/19/2019 at 06:54PM

37
#6883 - Sean Connor / @seaconr

03/06/2019 at 07:23AM

37
#6884 - 重启吧 / @reboot8

03/15/2019 at 09:55PM

37
#6885 - Milly / @millyrowboat

03/27/2019 at 05:35AM

37
#6886 - Branden Clark / @clarkb_cs

04/19/2019 at 04:27AM

37
#6887 - Lewis Wrigley / @WrigleyL

05/15/2019 at 09:55AM

37
#6888 - Gordo Reformed / @ItsmeGordo

05/15/2019 at 04:02PM

37
#6889 - whj / @whj768702

05/22/2019 at 11:38AM

37
#6890 - amtramos / @amtramos

05/30/2019 at 01:52AM

37
#6891 - Mike Fang / @MikeFang20

06/05/2019 at 02:02AM

37
#6892 - Anh / @Anh87554000

06/21/2019 at 12:49AM

37
#6893 - Crystal L / @Cartsly

07/13/2019 at 07:33PM

37
#6894 - Ryan Baker / @RyanTehBaker

07/17/2019 at 06:49PM

37
#6895 - wwilkins / @wwilkins

07/24/2019 at 12:14AM

37
#6896 - Ishan Khanna / @droidchef

08/30/2019 at 02:41PM

37
#6897 - Vincent Maladière / @maladiere

09/09/2019 at 01:59PM

37
#6898 - Satish Maurya / @maurya777

10/11/2019 at 02:35AM

37
#6899 - bluehand / @bluehan73169389

10/12/2019 at 04:21AM

37
#6900 - Sander Roosingh / @sjroosingh

10/14/2019 at 03:04PM