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

7061 active golfers, 32020 entries

Leaderboard (lowest score wins):
22
#2131 - Tim Smart / @tim_smart

05/07/2020 at 10:25PM

22
#2132 - Neil Earnshaw / @neilearnshaw

05/07/2020 at 10:49PM

22
#2133 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:19PM

22
#2134 - ThrowawayProbably912 / @TProbably912

05/10/2020 at 04:18PM

22
#2135 - Mateo / @Mateo_BCN

05/11/2020 at 07:52AM

22
#2136 - Matt DB / @MattDB12

05/11/2020 at 07:47PM

22
#2137 - Harish / @itzharish_c

05/12/2020 at 10:20AM

22
#2138 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:24AM

22
#2139 - Joel / @Joel33380735

05/14/2020 at 02:03PM

22
#2140 - Jake Van Alstyne / @jake_va

05/14/2020 at 03:34PM

22
#2141 - Joel / @JoelRepta

05/15/2020 at 07:51PM

22
#2142 - Lucas_Elsen / @DuVrangrGata18

05/16/2020 at 07:50AM

22
#2143 - Quentin Leroy / @qnleroy

05/19/2020 at 05:20AM

22
#2144 - Szymon Naskręcki / @snaskrecki

05/20/2020 at 10:05AM

22
#2145 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

05/20/2020 at 03:25PM

22
#2146 - Andreas Buhr / @andreas_buhr

05/20/2020 at 04:01PM

22
#2147 - lpf / @yurisses

05/21/2020 at 05:35PM

22
#2148 - Wayne / @lilwayne15561

05/22/2020 at 01:40AM

22
#2149 - 王有铭 / @wangyouming1209

05/22/2020 at 10:16AM

22
#2150 - Jewi / @j3wi

05/25/2020 at 01:56AM

22
#2151 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

05/25/2020 at 09:20AM

22
#2152 - speisz / @speiszc

05/27/2020 at 07:47AM

22
#2153 - Gordon / @gordonbourdain

05/28/2020 at 06:39AM

22
#2154 - Aidan Wilson / @aidanbwilson

05/28/2020 at 02:44PM

22
#2155 - nbspAD / @AdNbsp

05/31/2020 at 01:53PM

22
#2156 - Alek Mugnozzo / @mugnozzo

06/01/2020 at 09:55PM

22
#2157 - Lili Boi / @lili_boi

06/06/2020 at 01:44AM

22
#2158 - 六弦 / @liuxian1990

06/06/2020 at 03:22AM

22
#2159 - Piotr Grzegorski / @PGrzegorski

06/08/2020 at 01:40PM

22
#2160 - nico / @res_tantum

06/08/2020 at 06:01PM