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

6717 active golfers, 30347 entries

Leaderboard (lowest score wins):
22
#1621 - chocolate / @chocola81394123

01/20/2019 at 01:47PM

22
#1622 - Alex Tercete / @alextercete

01/21/2019 at 05:53PM

22
#1623 - Federico / @gselsette

01/22/2019 at 10:55PM

22
#1624 - André Z / @andrelzanellato

01/23/2019 at 12:02AM

22
#1625 - Krishnan Ravikumar / @rkrishnaan

01/23/2019 at 06:30PM

22
#1626 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 09:58PM

22
#1627 - Tinko Minko / @tandikula

01/27/2019 at 10:51PM

22
#1628 - brian / @b_

01/28/2019 at 02:17AM

22
#1629 - Patrick Lavin / @LavinComputes

01/30/2019 at 03:48PM

22
#1630 - Adrien Plaçais / @AdrienPlcs

01/30/2019 at 04:33PM

22
#1631 - Titouan Teyssier / @TitouanT_

02/01/2019 at 04:13AM

22
#1632 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 10:07AM

22
#1633 - Rene Ribaud / @Uggla_

02/04/2019 at 12:17AM

22
#1634 - Jan Sturm / @JanSturm77

02/04/2019 at 07:18PM

22
#1635 - Mac Goever / @MacGoever

02/04/2019 at 08:44PM

22
#1636 - Percelot / @percelot

02/05/2019 at 03:42PM

22
#1637 - Baine Wedlock / @BaineWedlock

02/06/2019 at 07:47AM

22
#1638 - JBL / @jbl428

02/06/2019 at 01:25PM

22
#1639 - Christopher Weyand / @swordman378

02/06/2019 at 01:37PM

22
#1640 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:28PM

22
#1641 - Ng Sek Long / @NgSekLong

02/09/2019 at 12:55PM

22
#1642 - Davide Silva / @DavideSilva_

02/09/2019 at 08:04PM

22
#1643 - Calum Halpin / @calumhalpin

02/09/2019 at 10:39PM

22
#1644 - Jack Denny / @Scarab5Q

02/10/2019 at 11:28PM

22
#1645 - Sam Miller / @sam_miller93

02/11/2019 at 11:55AM

22
#1646 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

02/13/2019 at 03:30AM

22
#1647 - Fongxuan / @FongX_L

02/14/2019 at 09:43AM

22
#1648 - Wei Wen / @goweiwen

02/14/2019 at 07:38PM

22
#1649 - sjcomp / @sjcomp

02/15/2019 at 06:41PM

22
#1650 - Filipe Brandenburger / @filbranden

02/17/2019 at 03:39AM