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

7425 active golfers, 33648 entries

Leaderboard (lowest score wins):
22
#1651 - Carl Blomqvist / @calleblomqvist

02/18/2019 at 05:35PM

22
#1652 - jqphu / @jqphu

02/23/2019 at 10:02PM

22
#1653 - sisi100 / @s1si100

02/23/2019 at 11:50PM

22
#1654 - Zach Miller / @barizachsy

02/27/2019 at 02:40AM

22
#1655 - Romain Bitard / @RBitard

02/28/2019 at 12:29PM

22
#1656 - Ivo Tripunovic / @ivo_tripunovic

02/28/2019 at 01:50PM

22
#1657 - ahm4711 / @ahm4711

03/01/2019 at 10:41AM

22
#1658 - serent / @serent

03/01/2019 at 06:21PM

22
#1659 - scottarver / @scottarver

03/02/2019 at 04:10AM

22
#1660 - james_bunch / @james_bunch

03/02/2019 at 05:44AM

22
#1661 - severij / @severij_

03/02/2019 at 11:46AM

22
#1662 - Steffen Wentzel / @SteffenWentzel

03/03/2019 at 01:36PM

22
#1663 - Daniel Nägele / @debugloop

03/04/2019 at 02:19PM

22
#1664 - maq / @maq41476369

03/05/2019 at 10:33AM

22
#1665 - Dmitry Romanovskiy / @WhereIsMyHause

03/05/2019 at 11:54AM

22
#1666 - zh0ng / @zh00ng

03/05/2019 at 01:16PM

22
#1667 - Groovy / @groovy9

03/06/2019 at 08:55PM

22
#1668 - Dan / @dstein64

03/07/2019 at 05:01AM

22
#1669 - bza / @bza60728419

03/08/2019 at 12:15AM

22
#1670 - Robert Orr / @orrrobert

03/08/2019 at 03:22AM

22
#1671 - lmnop / @xzyzq

03/08/2019 at 07:40AM

22
#1672 - Kyle Tilman / @kyletilman

03/08/2019 at 07:35PM

22
#1673 - Tarik IRHBOULA / @tarik12009

03/10/2019 at 09:39PM

22
#1674 - Jens / @Jens18925425

03/11/2019 at 03:40PM

22
#1675 - enji / @enji_ja

03/15/2019 at 02:45PM

22
#1676 - Gerbier Thomas / @GerbierThomas1

03/18/2019 at 01:07AM

22
#1677 - 이혁준 / @biper94

03/18/2019 at 02:32AM

22
#1678 - Trung Nguyen / @TinyTrung

03/18/2019 at 07:38AM

22
#1679 - longB / @longB77353628

03/18/2019 at 10:52AM

22
#1680 - ktbffh / @ktbffh73607665

03/18/2019 at 11:40AM