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

6044 active golfers, 27141 entries

Leaderboard (lowest score wins):
36
#5491 - Richard Godden / @goddenrich

10/18/2017 at 05:47PM

36
#5492 - Tim Tejsner / @datimsta

10/26/2017 at 10:31PM

36
#5493 - LianYuzhe / @dathstick

11/08/2017 at 02:41PM

36
#5494 - Morgan Thrapp / @MorganPThrapp

12/06/2017 at 08:18PM

36
#5495 - Steve Lemuel / @Steve_Lemuel

12/20/2017 at 03:34PM

36
#5496 - Moritz Manner / @moritz_manner

12/28/2017 at 11:08PM

36
#5497 - Lally / @oolally__

01/14/2018 at 08:24PM

36
#5498 - kikov79 / @kikov79

01/18/2018 at 08:10PM

36
#5499 - Filip / @Filip20512219

02/03/2018 at 07:15PM

36
#5500 - D / @killsunday

02/11/2018 at 02:36AM

36
#5501 - Zesee / @Zesee

02/23/2018 at 08:33AM

36
#5502 - Jason Cheow / @jasoncheow

03/22/2018 at 04:27AM

36
#5503 - miguel ayayay / @miguelayayay

04/02/2018 at 08:09AM

36
#5504 - Adimir Colen / @adimircolen

04/11/2018 at 01:36PM

36
#5505 - Arrchana / @arrchu

04/14/2018 at 03:16PM

36
#5506 - TG Weiterleiter / @0xcofebabe1

05/02/2018 at 07:36PM

36
#5507 - zebbielm12 / @zebbielm12

05/14/2018 at 04:02PM

36
#5508 - Chris Marlow / @perrupa

05/15/2018 at 03:51AM

36
#5509 - Siddharth Bhat / @druidoftheclaw

05/27/2018 at 10:21AM

36
#5510 - Yegor Popov / @indeveler

06/06/2018 at 04:23PM

36
#5511 - testasddae / @testasddae

06/17/2018 at 02:17PM

36
#5512 - Yann VERY / @yannvery

06/25/2018 at 10:49AM

36
#5513 - niwatoco / @yoshitune9

07/15/2018 at 01:40PM

36
#5514 - Branquito / @branquito

07/15/2018 at 06:13PM

36
#5515 - Jakub Tesárek / @JakubTesarek

07/24/2018 at 08:34AM

36
#5516 - Pancham Bharadwaj / @PanchamRB

07/31/2018 at 05:18AM

36
#5517 - Pham Nhat Cuong / @acmetal74

08/02/2018 at 02:56AM

36
#5518 - mnbvcxzqwerty / @mnbvcxzqwerty3

08/04/2018 at 08:17PM

36
#5519 - Lê Trung Hiếu / @vienngoc9

08/22/2018 at 12:27PM

36
#5520 - tmp4869 / @tmp4869

08/24/2018 at 12:49PM