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

5565 active golfers, 24834 entries

Leaderboard (lowest score wins):
22
#271 - Adv_Zxy / @adv_zxy

12/26/2015 at 09:12AM

22
#272 - Maciej Woźniak / @eldhash

12/26/2015 at 06:53PM

22
#273 - Håken Lid / @haakenlid

12/26/2015 at 11:27PM

22
#274 - Marko / @suchtie

12/27/2015 at 07:32PM

22
#275 - kandrey999 / @kandrey999

12/28/2015 at 05:23AM

22
#276 - Brian C Sparks / @briancsparks

12/28/2015 at 01:09PM

22
#277 - Anthony BERNARD / @TweetTontony

12/31/2015 at 01:16PM

22
#278 - Saki Gw / @Sakigw

01/03/2016 at 01:47PM

22
#279 - DrHobo / @_DrHobo_

01/03/2016 at 06:11PM

22
#280 - WhatDo / @WhatDo10

01/05/2016 at 11:36AM

22
#281 - aashiq / @aashiq

01/06/2016 at 04:00PM

22
#282 - Alan Kang / @alankang

01/07/2016 at 01:10AM

22
#283 - jackliusr / @jackliusr

01/07/2016 at 05:54AM

22
#284 - Evgeny`s Kindle / @EvgenyKindle

01/07/2016 at 10:40PM

22
#285 - Roberto Carraretto / @robcarraretto

01/08/2016 at 12:21AM

22
#286 - hen don / @hendon112

01/09/2016 at 01:49AM

22
#287 - Goonoo Kim / @mctenshi

01/09/2016 at 01:03PM

22
#288 - namongk / @namongk

01/10/2016 at 03:30AM

22
#289 - Pikkiwoki / @Pikkiwoki

01/11/2016 at 03:27AM

22
#290 - Robbert Brak / @robbertbrak

01/11/2016 at 09:48AM

22
#291 - lassie (らっしー) / @lass1e

01/12/2016 at 02:12PM

22
#292 - Shalldök / @shalldoek

01/12/2016 at 10:20PM

22
#293 - LIU Chong Liang / @relight719

01/13/2016 at 08:51AM

22
#294 - Gabriele Sani / @gabriele_sani

01/13/2016 at 03:43PM

22
#295 - Mathias / @wizhie

01/15/2016 at 08:59PM

22
#296 - j c / @CLiquidee

01/16/2016 at 10:54AM

22
#297 - Lindsay Swift / @_lindsai_

01/17/2016 at 06:57PM

22
#298 - Eugene Yunak / @valamart

01/18/2016 at 03:35PM

22
#299 - Jamie Hand / @JamieCHand

01/19/2016 at 12:34AM

22
#300 - zmo / @guyzmo

01/20/2016 at 10:28AM