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

6615 active golfers, 29867 entries

Leaderboard (lowest score wins):
36
#6061 - Sam Gentle / @Zanzibar_1sland

05/18/2019 at 03:57AM

36
#6062 - Reid / @reid_kilgore

07/19/2019 at 08:31PM

36
#6063 - ah ah / @ahah26555805

07/22/2019 at 09:14PM

36
#6064 - Clayton Mullis / @ClayMullis

07/30/2019 at 04:45PM

36
#6065 - tengrui / @Rui_Teng

08/18/2019 at 12:05PM

36
#6066 - Aaron / @aaronlichtman

09/24/2019 at 12:35PM

36
#6067 - William Kennedy / @William13792486

09/24/2019 at 01:45PM

36
#6068 - Humber Aquino / @goku2

10/12/2019 at 04:58AM

36
#6069 - bodhi47 / @bodhi47

11/04/2019 at 02:55PM

36
#6070 - Scott Powell / @ScottPowellM

11/07/2019 at 06:28PM

36
#6071 - Neolex / @NeolexSecurity

11/27/2019 at 11:17AM

36
#6072 - Shubham Aggarwal / @agshubh49

12/11/2019 at 12:42PM

36
#6073 - Jeremy Thompson / @jeremyt918

12/22/2019 at 12:36AM

36
#6074 - Maurits / @MauritsvA

01/13/2020 at 03:50PM

36
#6075 - Mike Wittie / @mike_wittie

01/15/2020 at 04:31PM

36
#6076 - Jamie Houston / @silvyn

02/25/2020 at 03:49PM

36
#6077 - 88paco / @88paco1

02/28/2020 at 05:14PM

36
#6078 - drudd / @drudd

03/08/2020 at 03:32AM

36
#6079 - volandkit / @volandkit

04/17/2020 at 09:18PM

36
#6080 - Sabrina Seibel / @seibelsabrina

04/25/2020 at 10:01PM

36
#6081 - soumyaranjan acharya / @code_hia

04/30/2020 at 05:49PM

36
#6082 - Husnain Murtaza / @husnainmurtaza_

05/21/2020 at 09:48AM

36
#6083 - Brett Levenson / @brett_levenson

05/25/2020 at 01:10AM

37
#6084 - 0xEE / @ejcx_

09/18/2015 at 11:13PM

37
#6085 - levicook / @levicook

11/09/2015 at 07:05PM

37
#6086 - โป๊งเหน่ง.js / @biiterlove

12/08/2015 at 05:04AM

37
#6087 - Justyna Rachowicz / @mrowa44

12/24/2015 at 01:09PM

37
#6088 - Stas Karpov / @dragothefiery

02/18/2016 at 09:37AM

37
#6089 - reyonman / @reyonman

02/24/2016 at 11:11PM

37
#6090 - Ryan Diaz / @RyanDiaz18

03/26/2016 at 04:25AM