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
#1981 - 李嘉浩 / @isundaylee

11/23/2019 at 03:17AM

22
#1982 - bassnecter / @lothedr

11/23/2019 at 07:34AM

22
#1983 - zlogan / @zlogan2003

11/24/2019 at 02:49AM

22
#1984 - Eviber / @youvaaaaa

11/26/2019 at 03:13PM

22
#1985 - Marc Päpper / @mpaepper

11/27/2019 at 09:05PM

22
#1986 - Jonathan DeYoung / @JonathanDeyoung

11/27/2019 at 09:17PM

22
#1987 - Shaw C. / @Xiao_SCKii

11/29/2019 at 10:53AM

22
#1988 - John Prescott / @wladeczek44

11/29/2019 at 06:33PM

22
#1989 - bruiser / @bruiserwins

11/30/2019 at 12:16AM

22
#1990 - zigford / @zigford_org

12/01/2019 at 10:25AM

22
#1991 - およねさん / @yuukikun31

12/01/2019 at 01:56PM

22
#1992 - Volodymyr / @vkozach

12/01/2019 at 02:57PM

22
#1993 - Nil / @nilnoone

12/02/2019 at 02:55PM

22
#1994 - Eric Johnson / @dej79

12/02/2019 at 09:05PM

22
#1995 - Dave Scowen / @DavidScowen

12/04/2019 at 04:03PM

22
#1996 - Jonathan Jeffrey / @projjects

12/05/2019 at 04:30AM

22
#1997 - Jason Crowley / @jcrowle5

12/06/2019 at 09:36AM

22
#1998 - Pierre Balayé / @PierreBalaye

12/06/2019 at 04:44PM

22
#1999 - Tefe / @tefetic

12/07/2019 at 11:13PM

22
#2000 - Richard Mörbitz / @Lodifice

12/09/2019 at 09:33PM

22
#2001 - Coby Drexler / @CobyDrexler

12/12/2019 at 12:14AM

22
#2002 - heyyou / @hey3you3

12/12/2019 at 04:07PM

22
#2003 - Akira Sasaki / @hikomimo

12/15/2019 at 04:03PM

22
#2004 - Herman Stavelin / @HsBruker

12/18/2019 at 08:11PM

22
#2005 - Simon / @Simon79318261

12/18/2019 at 08:56PM

22
#2006 - 新 / @kuropp_

12/19/2019 at 02:59AM

22
#2007 - Brian Chen / @ISayFuckTooMuch

12/19/2019 at 07:35PM

22
#2008 - hsxyl / @hsxyl2

12/21/2019 at 12:49PM

22
#2009 - Simon Bucher / @SimonBucher10

12/22/2019 at 05:37PM

22
#2010 - Sujay Vadlakonda / @SujayVadlakonda

12/24/2019 at 04:17PM