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

6714 active golfers, 30325 entries

Leaderboard (lowest score wins):
32
#5401 - crokobit / @crokobit11

07/27/2019 at 04:50AM

32
#5402 - Mike Hourahine / @mhourahine

07/31/2019 at 07:56PM

32
#5403 - Matthew Grossman / @GrossmanMr

08/02/2019 at 04:40AM

32
#5404 - Lukas Stratmann / @Lumpiluk

08/07/2019 at 02:31PM

32
#5405 - dahara / @kuma_moooon

08/15/2019 at 02:51PM

32
#5406 - Kenny Low / @kennylow

08/15/2019 at 03:08PM

32
#5407 - Hot Take / @hottake69

08/17/2019 at 08:15PM

32
#5408 - David / @davidrapsey

08/18/2019 at 10:48AM

32
#5409 - Le Tu Binh / @LeTuBinh1

08/19/2019 at 06:59AM

32
#5410 - Jun Isaji / @Jisaji

08/31/2019 at 04:06PM

32
#5411 - p unknowns h / @unknownsh

09/19/2019 at 03:34PM

32
#5412 - Joshua Grosso / @JoshuaGrosso

09/24/2019 at 09:12PM

32
#5413 - David B. / @dblanken

09/30/2019 at 02:59PM

32
#5414 - Serpentri / @Serpentri1

10/01/2019 at 05:28PM

32
#5415 - Caleb Rogers / @komali_2

10/14/2019 at 01:58PM

32
#5416 - mnaufal75 / @mnaufal75

10/18/2019 at 03:49PM

32
#5417 - Bruno Machado / @brunosmmachado

10/19/2019 at 05:22PM

32
#5418 - Yasky / @Yaasky

10/21/2019 at 05:22PM

32
#5419 - Konstantinos / @karampok

10/24/2019 at 12:56PM

32
#5420 - Beppo / @b3pp00

10/28/2019 at 12:35PM

32
#5421 - Keith Klassen / @Collegekid491

11/02/2019 at 08:02PM

32
#5422 - aaa / @aaa09223304

11/07/2019 at 07:48AM

32
#5423 - kep / @kep20093456

11/13/2019 at 01:20PM

32
#5424 - Alexey Kulichevskiy / @smysl

11/14/2019 at 12:20PM

32
#5425 - Rudy Hasbun / @rudyhasbun

11/15/2019 at 04:50PM

32
#5426 - FaeFeyFa / @fae_fey

11/19/2019 at 04:17AM

32
#5427 - Spencer Stolworthy / @sdstolworthy1

12/01/2019 at 06:39PM

32
#5428 - vim_golfer_1 / @vimgolfer12

12/02/2019 at 03:11AM

32
#5429 - akhil maskery / @mask34056915821

12/10/2019 at 02:20AM

32
#5430 - Paul Roever / @proever

12/20/2019 at 01:17AM