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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
43
#7231 - Duy Linh / @DuyLinh12080656

04/24/2020 at 02:57AM

43
#7232 - Name / @Rizzey3730

05/18/2020 at 06:55PM

43
#7233 - Silverei / @silvereii

06/23/2020 at 06:26AM

43
#7234 - DonalD / @Donald2407

12/14/2020 at 12:45AM

43
#7235 - Kirill Voloshin / @voloshink

06/09/2024 at 06:29PM

44
#7236 - hoemoon / @hoemoon

01/09/2016 at 11:17AM

44
#7237 - AkashdeepKahlon / @AkashKahlon2

01/14/2016 at 05:36PM

44
#7238 - Brennen Awana / @BrennenAwana

07/30/2016 at 03:44AM

44
#7239 - Oskari Saari / @shredu92

09/02/2016 at 04:41AM

44
#7240 - Rajath Ramakrishna / @rrajath

01/24/2017 at 01:28AM

44
#7241 - Alec Zhang / @alecjzhang

04/18/2017 at 08:32PM

44
#7242 - vim golfer / @vimgolfer2

12/11/2017 at 12:53AM

44
#7243 - Demur Nodia / @demurnodia

02/15/2018 at 07:16AM

44
#7244 - Jing Jing / @williamjingron1

03/04/2018 at 09:43AM

44
#7245 - mariel / @tiny_jupiter

04/06/2018 at 06:26PM

44
#7246 - Zorvy / @Zorvyyy

08/16/2018 at 09:08PM

44
#7247 - diego olivera / @alejo_olivera

09/19/2018 at 08:58PM

44
#7248 - prozactool / @prozactool

10/12/2018 at 05:33AM

44
#7249 - Clement Thomas / @clement1289

04/05/2019 at 08:47AM

44
#7250 - Alex C-G ๐Ÿณ๏ธโ€๐ŸŒˆ / @alexcg

04/24/2019 at 05:15AM

44
#7251 - Favio Manriquez / @favrik

05/21/2019 at 05:46AM

44
#7252 - Chris Gammell / @Chris_Gammell

09/20/2019 at 09:12PM

44
#7253 - Le nom ne peut pas รชtre vide / @toitoine0710

12/24/2019 at 08:30AM

44
#7254 - oponkork / @oponkork

01/10/2020 at 01:31PM

44
#7255 - r4d1um / @r4d1um

03/13/2020 at 12:10PM

44
#7256 - Sarayut Lawilai / @imkopkap

05/06/2020 at 05:02AM

44
#7257 - Ajay Raj / @ajayr98

05/13/2020 at 09:13PM

44
#7258 - Molly & Milo / @molly_milo

05/18/2020 at 08:17PM

44
#7259 - migel1976 / @migel19760103

05/20/2020 at 08:29PM

44
#7260 - ใ‚ˆใใจโ˜„็ตถ่ตทใฎ้”ไบบ๐ŸŒž้€š๐ŸŒž็Ÿฅ๐ŸŒžใ‚‚๐ŸŒžๆฐ—๐ŸŒžๅˆ†๐ŸŒžใ‚‚๐ŸŒžๆ˜Ž๐ŸŒžใ‚‹๐ŸŒžใ๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž / @yokto_science

07/11/2020 at 05:18PM