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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#1081 - Eugenio Cano-Manuel / @_3u

09/28/2017 at 06:17PM

22
#1082 - Justin Beavers / @JustinBeavers6

09/29/2017 at 12:01AM

22
#1083 - 한우석 / @wooseokhan

09/29/2017 at 04:46PM

22
#1084 - Chris Atanasian / @ChrisAtanasian

09/29/2017 at 10:41PM

22
#1085 - James Lowenthal / @JamesAnthonyLow

09/30/2017 at 04:36AM

22
#1086 - John Doe / @Xeraphobiac

10/01/2017 at 05:40AM

22
#1087 - Mr. F / @Flur1n

10/01/2017 at 06:04PM

22
#1088 - Michael Oberst / @MichaelOberst

10/01/2017 at 11:30PM

22
#1089 - 5tephen / @geluso

10/02/2017 at 04:41AM

22
#1090 - Sergio / @voyeg3r

10/03/2017 at 07:14PM

22
#1091 - markos rendell / @markosrendell

10/05/2017 at 10:34PM

22
#1092 - Le Lycal / @LeLycal

10/06/2017 at 07:29AM

22
#1093 - ueqt / @ueqtxu_ueqt

10/06/2017 at 01:09PM

22
#1094 - RB / @powerage99

10/08/2017 at 09:39PM

22
#1095 - Gaël Delalleau / @gaeldelalleau

10/10/2017 at 01:53PM

22
#1096 - Lukas Vermeer / @lukasvermeer

10/10/2017 at 02:55PM

22
#1097 - Zakaria ANBARI / @abualy4400

10/11/2017 at 01:15PM

22
#1098 - Rich Cheng / @sedm0784

10/11/2017 at 03:16PM

22
#1099 - Rafael Souza / @heavyDosesOfDMT

10/11/2017 at 07:23PM

22
#1100 - jairoandre / @jairoandre

10/11/2017 at 07:32PM

22
#1101 - VirginiaSteaks / @VirginiaSteaks

10/11/2017 at 10:24PM

22
#1102 - Joshua Lin / @Springbottom

10/12/2017 at 02:29AM

22
#1103 - Zacharie Day / @richbaby420

10/12/2017 at 10:39PM

22
#1104 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 01:37AM

22
#1105 - Seybol / @Seybol_

10/14/2017 at 03:23PM

22
#1106 - Carlos Vigil / @CarlosVixil

10/14/2017 at 10:28PM

22
#1107 - thvdburgt / @thvdburgt

10/15/2017 at 09:29PM

22
#1108 - Mike Reinhardt / @subitoforte

10/16/2017 at 08:06PM

22
#1109 - MuadDev / @MuadDev

10/17/2017 at 02:30PM

22
#1110 - idle poze / @idlepoze

10/19/2017 at 09:56PM