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

5954 active golfers, 26713 entries

Leaderboard (lowest score wins):
22
#1171 - gink / @anagiwa

12/15/2017 at 09:15AM

22
#1172 - Brett Plocek / @BrettP02

12/16/2017 at 04:39AM

22
#1173 - Sage san / @sagesancast

12/17/2017 at 07:18PM

22
#1174 - Dominic Z / @thammaaa

12/20/2017 at 12:28PM

22
#1175 - Goopy Flux / @GoopyFlux

12/20/2017 at 01:58PM

22
#1176 - deepak / @utopianmonk

12/20/2017 at 06:36PM

22
#1177 - Kazuhide Shitamura / @kazuhid05139013

12/22/2017 at 11:00PM

22
#1178 - shimma / @chestermx88

12/23/2017 at 09:21AM

22
#1179 - Oskar Norman / @Norman0

12/23/2017 at 09:48AM

22
#1180 - 小山内まい / @osanamity

12/23/2017 at 06:01PM

22
#1181 - Entropitor / @entropitor

12/27/2017 at 09:51AM

22
#1182 - Jonas I. / @jonasiver

12/29/2017 at 11:11PM

22
#1183 - io / @iovis9

12/30/2017 at 12:44PM

22
#1184 - Brett Bender / @brttbndr

12/31/2017 at 12:04AM

22
#1185 - d / @dion5618

01/03/2018 at 04:07PM

22
#1186 - Mark Godwin / @mgodwin37

01/05/2018 at 05:01AM

22
#1187 - Sebastian Müller / @echsberde

01/06/2018 at 09:38AM

22
#1188 - François Marais / @maraisf

01/06/2018 at 04:54PM

22
#1189 - Joe Kerian / @kerian

01/08/2018 at 04:30PM

22
#1190 - Emanuele Canessa / @emacann

01/08/2018 at 11:55PM

22
#1191 - Wilson Chang / @ckwojai

01/11/2018 at 09:15AM

22
#1192 - Leo / @clearissimple

01/11/2018 at 08:06PM

22
#1193 - Luong Nguyen / @LuongNguyen_95

01/13/2018 at 03:11PM

22
#1194 - ParasamGateZero / @ParasamGateZero

01/13/2018 at 07:56PM

22
#1195 - ycolina / @ycolina3

01/13/2018 at 09:11PM

22
#1196 - Andrew Davis / @AndrewD14539793

01/13/2018 at 10:42PM

22
#1197 - Simon Cheng / @bambooraccoon

01/14/2018 at 03:54PM

22
#1198 - TpouHuK / @TpouHuK_

01/14/2018 at 07:43PM

22
#1199 - LungZeno / @LungZenoOpen

01/16/2018 at 11:34PM

22
#1200 - Sebastian Wieland / @oktupol

01/18/2018 at 02:50PM