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

7068 active golfers, 32041 entries

Leaderboard (lowest score wins):
43
#6871 - heretic314 / @heretic314

01/08/2020 at 07:03PM

43
#6872 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 02:26AM

43
#6873 - Duy Linh / @DuyLinh12080656

04/24/2020 at 02:57AM

43
#6874 - Name / @Rizzey3730

05/18/2020 at 06:55PM

43
#6875 - Silverei / @silvereii

06/23/2020 at 06:26AM

44
#6876 - hoemoon / @hoemoon

01/09/2016 at 11:17AM

44
#6877 - AkashdeepKahlon / @AkashKahlon2

01/14/2016 at 05:36PM

44
#6878 - Brennen Awana / @BrennenAwana

07/30/2016 at 03:44AM

44
#6879 - Oskari Saari / @shredu92

09/02/2016 at 04:41AM

44
#6880 - Rajath Ramakrishna / @rrajath

01/24/2017 at 01:28AM

44
#6881 - Alec Zhang / @alecjzhang

04/18/2017 at 08:32PM

44
#6882 - vim golfer / @vimgolfer2

12/11/2017 at 12:53AM

44
#6883 - Demur Nodia / @demurnodia

02/15/2018 at 07:16AM

44
#6884 - Jing Jing / @williamjingron1

03/04/2018 at 09:43AM

44
#6885 - mariel / @tiny_jupiter

04/06/2018 at 06:26PM

44
#6886 - Zorvy / @Zorvyyy

08/16/2018 at 09:08PM

44
#6887 - diego olivera / @alejo_olivera

09/19/2018 at 08:58PM

44
#6888 - prozactool / @prozactool

10/12/2018 at 05:33AM

44
#6889 - Clement Thomas / @clement1289

04/05/2019 at 08:47AM

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

04/24/2019 at 05:15AM

44
#6891 - Favio Manriquez / @favrik

05/21/2019 at 05:46AM

44
#6892 - Chris Gammell / @Chris_Gammell

09/20/2019 at 09:12PM

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

12/24/2019 at 08:30AM

44
#6894 - oponkork / @oponkork

01/10/2020 at 01:31PM

44
#6895 - r4d1um / @r4d1um

03/13/2020 at 12:10PM

44
#6896 - Sarayut Lawilai / @imkopkap

05/06/2020 at 05:02AM

44
#6897 - Ajay Raj / @ajayr98

05/13/2020 at 09:13PM

44
#6898 - Molly & Milo / @molly_milo

05/18/2020 at 08:17PM

44
#6899 - migel1976 / @migel19760103

05/20/2020 at 08:29PM

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

07/11/2020 at 05:18PM