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

6800 active golfers, 30755 entries

Leaderboard (lowest score wins):
22
#1411 - Daichi / @daichi1014

08/16/2018 at 03:38AM

22
#1412 - Frank Korf / @OMGFrank

08/16/2018 at 08:28PM

22
#1413 - Fergus Longley / @FergusLongley

08/17/2018 at 03:05PM

22
#1414 - Stefan Frid / @FridStefan

08/17/2018 at 08:07PM

22
#1415 - Ricardo Lima / @ricponteslima

08/17/2018 at 10:38PM

22
#1416 - Hugo / @szeyattai

08/18/2018 at 12:51PM

22
#1417 - ねんど/みりおん / @nendonox

08/18/2018 at 04:44PM

22
#1418 - Тёма / @Timon_Surikat

08/18/2018 at 07:51PM

22
#1419 - Dennis Proksch / @DennisProksch

08/19/2018 at 04:35PM

22
#1420 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

08/19/2018 at 06:26PM

22
#1421 - Coruja Queridinha / @miriamretka

08/19/2018 at 07:57PM

22
#1422 - Mark Oswald / @mrkosw

08/21/2018 at 01:19PM

22
#1423 - Lee Saville / @LeeSaville

08/21/2018 at 07:13PM

22
#1424 - John Rizkalla / @jrizkall

08/21/2018 at 11:05PM

22
#1425 - koern82 / @koern82

08/22/2018 at 09:59PM

22
#1426 - Simon Ingelsson / @_DeVVaN_

08/23/2018 at 11:45AM

22
#1427 - Cathal McGuire / @cmcguire79

08/24/2018 at 03:27PM

22
#1428 - Daniel Vaqueiro / @chimidea

08/24/2018 at 05:42PM

22
#1429 - 김성현 / @TVrZzAZsmL4lS3S

08/24/2018 at 07:05PM

22
#1430 - Christopher / @Rephiscorth

08/24/2018 at 09:42PM

22
#1431 - A Programmer / @hlprogrammer

08/26/2018 at 12:08AM

22
#1432 - vim001_ / @vim001_

08/26/2018 at 07:48PM

22
#1433 - nqiiii / @nqiiii1

08/27/2018 at 12:48PM

22
#1434 - Chi Jun / @jun13blu

08/28/2018 at 04:30AM

22
#1435 - Lucas / @Lucas24474922

08/28/2018 at 01:20PM

22
#1436 - zhenshan Xue / @xzs572

08/29/2018 at 12:24PM

22
#1437 - broken_art / @brokenart10

08/30/2018 at 10:58AM

22
#1438 - ملحد عربي / @mol7ed_3rabi

08/30/2018 at 06:56PM

22
#1439 - がく / @Gaku07jp

08/31/2018 at 08:48AM

22
#1440 - Trey Deitch / @differenceeq

09/02/2018 at 12:22AM