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

6046 active golfers, 27155 entries

Leaderboard (lowest score wins):
38
#5671 - Giviz / @giviz

03/01/2017 at 08:34PM

38
#5672 - Jonah Mandli / @jmandli12

04/19/2017 at 11:05PM

38
#5673 - moriancumer / @moriancumer

04/20/2017 at 02:59PM

38
#5674 - Akostrikov / @akostrikov

04/21/2017 at 05:26PM

38
#5675 - Niranjan S / @niranjan8192

05/30/2017 at 08:20PM

38
#5676 - Forrest Dworsky / @ForrestDworsky

08/01/2017 at 05:07PM

38
#5677 - Mo Kefah / @KefahMo

08/23/2017 at 07:18PM

38
#5678 - Ferran / @ferrandinandus

09/22/2017 at 01:32PM

38
#5679 - czheo / @czheo

10/10/2017 at 04:07AM

38
#5680 - ogiekako / @ogiekako

01/09/2018 at 09:35AM

38
#5681 - Vignesh Shankar / @Vsnake_

01/25/2018 at 05:37AM

38
#5682 - Franklin Plowman / @frankplow

02/16/2018 at 11:05PM

38
#5683 - IZM / @Slydda_Litta

02/17/2018 at 02:52AM

38
#5684 - Peter / @PeterHartshorn

03/13/2018 at 04:01PM

38
#5685 - KoboldTheGreat / @koboldthegreat

04/14/2018 at 12:51PM

38
#5686 - Ola Johansson / @oj_johansson

04/20/2018 at 12:18PM

38
#5687 - Pablo P Varela / @pablopunk

05/03/2018 at 11:51AM

38
#5688 - Christian Rasmussen / @alfabetacain

05/03/2018 at 01:39PM

38
#5689 - Алексей Торрин / @forkiy

05/08/2018 at 11:27AM

38
#5690 - Cole Helbling / @helbling_cole

08/10/2018 at 01:52AM

38
#5691 - Rafael 117 / @Rafael117j

08/23/2018 at 03:05PM

38
#5692 - Noah Klein / @noahkle

08/24/2018 at 04:42PM

38
#5693 - kevin / @kevin_sdc

08/31/2018 at 04:52PM

38
#5694 - Daniel Karlsson / @Kaameo_o

09/12/2018 at 03:12AM

38
#5695 - Александр Шарипов / @tehadawest

09/22/2018 at 04:02PM

38
#5696 - Yudi Supriyadi / @yudi099

10/06/2018 at 05:59AM

38
#5697 - Shunichi Kanade / @shunkana

11/04/2018 at 12:12AM

38
#5698 - K Lieu / @KDLieu

11/05/2018 at 07:02AM

38
#5699 - Cyprian / @Cyprian19777975

11/06/2018 at 11:15AM

38
#5700 - Daviwys / @daviwys

11/15/2018 at 07:04PM