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

6703 active golfers, 30249 entries

Leaderboard (lowest score wins):
33
#5491 - Jamison Bryant / @robojamison

07/19/2016 at 02:46PM

33
#5492 - Dmitriy Kotenok / @dmitriykotenok

07/21/2016 at 07:23PM

33
#5493 - Guilherme Quental / @guiquental

07/30/2016 at 09:09PM

33
#5494 - A cat / @St_Lewis_Fatmn

08/12/2016 at 03:58PM

33
#5495 - Matt Wahner / @MattWahner

08/20/2016 at 05:31AM

33
#5496 - Bendik Samseth / @BSamseth

09/18/2016 at 05:30PM

33
#5497 - Seth McFarland / @SethMc36

10/05/2016 at 05:25PM

33
#5498 - henry / @hery6658

10/08/2016 at 09:32AM

33
#5499 - Clalani / @clalania

10/13/2016 at 05:19PM

33
#5500 - halilakin / @halilakin

10/15/2016 at 06:25AM

33
#5501 - Martin Liberg / @marreman

10/16/2016 at 03:04PM

33
#5502 - Billy / @yukuanxu

10/17/2016 at 02:52AM

33
#5503 - Keith Rogers / @keirog

10/22/2016 at 01:17PM

33
#5504 - ctgben / @ctgben

10/22/2016 at 04:26PM

33
#5505 - Cameron / @cameronhurd

10/28/2016 at 08:05PM

33
#5506 - Gergely Toth / @tirpox

11/04/2016 at 12:10AM

33
#5507 - Максим Ливень / @maxlevs

11/20/2016 at 01:22PM

33
#5508 - dvorak / @dvorak0

11/26/2016 at 11:16AM

33
#5509 - Fernando Mendez / @_fmendez

12/03/2016 at 09:40AM

33
#5510 - Bruce Park / @bpark0

12/04/2016 at 11:02PM

33
#5511 - Lichao Yin / @CC_Ralph

12/28/2016 at 03:48AM

33
#5512 - Jack - Banjocat / @jackmuratore

12/28/2016 at 09:44PM

33
#5513 - Nik Miloserdov / @Nikmiloserdov

01/08/2017 at 06:04PM

33
#5514 - LinuxTrainingAcademy / @LinuxTA

01/10/2017 at 09:24PM

33
#5515 - Moussinho / @mouss4243

02/01/2017 at 08:51PM

33
#5516 - Patrik Pihlström / @metacognizance

02/03/2017 at 02:12PM

33
#5517 - Juan D. Acosta / @juandacorias

02/17/2017 at 07:38PM

33
#5518 - Gary Carter / @_carterg_

02/23/2017 at 05:04PM

33
#5519 - Ethan Kent / @EthanEKent

02/25/2017 at 12:20AM

33
#5520 - Rodrigo García / @garcialeonrodri

03/02/2017 at 09:25PM