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

6056 active golfers, 27217 entries

Leaderboard (lowest score wins):
35
#5401 - CAO Tien Duc / @tienduccao

09/11/2018 at 08:21PM

35
#5402 - Naz / @Naz29407955

09/15/2018 at 09:04AM

35
#5403 - gsvba / @gsvba

09/18/2018 at 09:23PM

35
#5404 - FokkusuKaze / @FokkusuKaze

09/24/2018 at 07:00AM

35
#5405 - Vim Golf / @VimGolf4

10/30/2018 at 09:11PM

35
#5406 - dorpo / @dorpo2

11/01/2018 at 03:32PM

35
#5407 - vipul / @vipul54995001

11/06/2018 at 08:07AM

35
#5408 - Nick Induni / @NickInduni

11/29/2018 at 01:25AM

35
#5409 - Tom Troyer / @tom_troyer

11/29/2018 at 07:53PM

35
#5410 - Alison Bento / @abnt713

12/06/2018 at 07:54PM

35
#5411 - Awakening George / @GeorgeC_monster

12/23/2018 at 09:59PM

35
#5412 - Jeff / @Jeff63157616

12/27/2018 at 06:03AM

35
#5413 - Brandon Braun / @Bmb330

12/29/2018 at 03:56AM

35
#5414 - daveramirez / @daveramirez

01/22/2019 at 07:43PM

35
#5415 - ShameOnMeApp / @ShameOnMeApp

01/25/2019 at 05:29PM

35
#5416 - Casey K / @account_name_2

02/06/2019 at 03:14PM

35
#5417 - Calvin Fong / @LordyBaka

02/10/2019 at 11:30AM

35
#5418 - David Wende / @WendeDavid

02/20/2019 at 03:47PM

35
#5419 - eduardo torres / @etdavila10

03/01/2019 at 02:57AM

35
#5420 - Benjamin Priestman / @BenjaminPriest7

03/01/2019 at 10:52PM

35
#5421 - Charles Brossollet / @Tcharlss

03/02/2019 at 01:46PM

35
#5422 - Noel Danz / @programoncoffee

03/04/2019 at 09:03PM

35
#5423 - exqt / @_exqt_

03/11/2019 at 10:19AM

35
#5424 - The Joe / @computerjoe708

03/17/2019 at 04:03PM

35
#5425 - Kevin De Wilde / @dewil_de

03/21/2019 at 02:07PM

35
#5426 - Inf Loop / @infl00p

03/22/2019 at 06:38PM

35
#5427 - invokerzhangyichi / @itachizyc

04/02/2019 at 04:43AM

35
#5428 - Диплодок Денис / @l0sts0u1

04/03/2019 at 09:25AM

35
#5429 - Jan B. / @bracki

04/08/2019 at 12:46PM

35
#5430 - Clay Coffman / @Clay_Coffman

04/24/2019 at 11:19PM