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

5959 active golfers, 26731 entries

Leaderboard (lowest score wins):
22
#1021 - nekorug😊🌼 / @nekorug

08/23/2017 at 10:02PM

22
#1022 - Stephen Watkin / @stephen_watkin

08/24/2017 at 06:43AM

22
#1023 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 02:13PM

22
#1024 - Scott Smith / @Scottaino

08/24/2017 at 02:40PM

22
#1025 - Kevin Ly / @kevinnnly

08/25/2017 at 05:25PM

22
#1026 - Doug Morgan / @dougmorganCLE

08/25/2017 at 11:56PM

22
#1027 - Piotr Kowalik / @pietrasagh

08/27/2017 at 04:43PM

22
#1028 - Kutsan Kaplan / @kutsankaplan

08/29/2017 at 01:54AM

22
#1029 - Darren Weston / @dazWestonUK

08/29/2017 at 07:13PM

22
#1030 - Hieu Cao / @hieuvijjo

08/31/2017 at 12:00PM

22
#1031 - Nicu Hodoș / @NicolaeHodos

08/31/2017 at 09:52PM

22
#1032 - dayshade / @dayshade_7

09/01/2017 at 06:23AM

22
#1033 - bazkila@gmail.com / @bazkila

09/02/2017 at 04:06AM

22
#1034 - Jeremy Huiskamp / @jeremyhuiskamp

09/02/2017 at 11:08AM

22
#1035 - zava / @znl1087

09/03/2017 at 08:13AM

22
#1036 - Atakan / @atakan_ermis

09/04/2017 at 06:42PM

22
#1037 - Victor Sena Molero / @victorsenam

09/04/2017 at 10:48PM

22
#1038 - Daniel Rasmuson / @danielrasmuson

09/06/2017 at 05:42AM

22
#1039 - thasso / @thasso23

09/06/2017 at 01:45PM

22
#1040 - Justin Krup / @justkrup

09/06/2017 at 08:23PM

22
#1041 - lack / @lack84639857

09/07/2017 at 08:48AM

22
#1042 - Igor Czerwinski / @igoratron

09/07/2017 at 07:43PM

22
#1043 - bocadillodeatun / @bocadillodeatun

09/07/2017 at 08:25PM

22
#1044 - Pinder / @rpinder_

09/08/2017 at 06:50PM

22
#1045 - Xuzhan Sun / @xuzsun

09/11/2017 at 06:52AM

22
#1046 - 郑晓东 / @DGivxLTVopiOQap

09/11/2017 at 08:17AM

22
#1047 - Cyhors / @Cyhors

09/12/2017 at 07:13AM

22
#1048 - steph-query / @StephQuery

09/12/2017 at 10:50PM

22
#1049 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 09:08AM

22
#1050 - Fabrice Koehl / @fabrice_koehl

09/14/2017 at 11:48AM