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):
38
#6931 - Chris Grantham / @crgrantham

11/18/2015 at 04:17PM

38
#6932 - Harrison B / @HarrisonBBBB

11/24/2015 at 01:27AM

38
#6933 - Theodore DeRego / @tedsta0

11/30/2015 at 09:48PM

38
#6934 - matty / @matty_books

12/26/2015 at 06:53AM

38
#6935 - EggplantLove / @SaladEggplant

02/17/2016 at 03:27PM

38
#6936 - Marco Gentili / @mgentili2

04/24/2016 at 01:46AM

38
#6937 - Sergey Sudakovich / @ssudakovich

05/02/2016 at 06:36PM

38
#6938 - Jeppe Larsen / @jwldk

05/03/2016 at 10:44AM

38
#6939 - Ilona / @ilonakoda

05/29/2016 at 03:34AM

38
#6940 - Bambusbjörn / @zwoUndPfirsich

05/29/2016 at 04:15PM

38
#6941 - zaru / @zaru

06/28/2016 at 09:01AM

38
#6942 - Luz Unda / @luzmaun

07/06/2016 at 05:02PM

38
#6943 - GINN / @fthRY9SF78ZgJCk

07/20/2016 at 07:37AM

38
#6944 - 이선협 / @kciter

09/01/2016 at 04:44AM

38
#6945 - Aaron Dershem / @ajdershem

10/04/2016 at 11:48PM

38
#6946 - qinyuhang / @Har1g

10/16/2016 at 01:47PM

38
#6947 - holy_sin / @0zero0

12/09/2016 at 07:11AM

38
#6948 - William Sturgiss / @SturgissWilliam

01/16/2017 at 09:53PM

38
#6949 - Giviz / @giviz

03/01/2017 at 08:34PM

38
#6950 - Jonah Mandli / @jmandli12

04/19/2017 at 11:05PM

38
#6951 - moriancumer / @moriancumer

04/20/2017 at 02:59PM

38
#6952 - Akostrikov / @akostrikov

04/21/2017 at 05:26PM

38
#6953 - Niranjan S / @niranjan8192

05/30/2017 at 08:20PM

38
#6954 - Forrest Dworsky / @ForrestDworsky

08/01/2017 at 05:07PM

38
#6955 - Mo Kefah / @KefahMo

08/23/2017 at 07:18PM

38
#6956 - Ferran / @ferrandinandus

09/22/2017 at 01:32PM

38
#6957 - czheo / @czheo

10/10/2017 at 04:07AM

38
#6958 - ogiekako / @ogiekako

01/09/2018 at 09:35AM

38
#6959 - Vignesh Shankar / @Vsnake_

01/25/2018 at 05:37AM

38
#6960 - Franklin Plowman / @frankplow

02/16/2018 at 11:05PM