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

7060 active golfers, 32018 entries

Leaderboard (lowest score wins):
22
#2041 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 04:45PM

22
#2042 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 01:38PM

22
#2043 - おねさわ / @yama846

02/02/2020 at 10:21AM

22
#2044 - Braintwister / @Braintwister13

02/02/2020 at 08:20PM

22
#2045 - Jean-Francois Parent / @hacker_pyrat

02/02/2020 at 10:28PM

22
#2046 - Bachelor / @bachelorwang

02/03/2020 at 05:18AM

22
#2047 - できない子 / @smonkdonk

02/04/2020 at 08:03PM

22
#2048 - nico S / @der_nico_93

02/05/2020 at 09:42AM

22
#2049 - Golfer9001 / @golfer9001

02/05/2020 at 11:53PM

22
#2050 - Sir_Kosciej / @SKosciej

02/08/2020 at 11:03PM

22
#2051 - Hyunjoon / @yi_hyunjoon

02/09/2020 at 12:58PM

22
#2052 - Niko Kivelä / @Tovrleaf

02/09/2020 at 04:04PM

22
#2053 - Xor547 / @Xor547

02/09/2020 at 04:34PM

22
#2054 - yhetsugiHMC / @yhetsugi

02/10/2020 at 02:46AM

22
#2055 - 骑空士阿为 / @wuwe19

02/12/2020 at 08:02AM

22
#2056 - jrddp / @jrddp0

02/12/2020 at 05:02PM

22
#2057 - Matt / @Matt85092908

02/12/2020 at 10:21PM

22
#2058 - Pietrino Atzeni / @beoboo

02/13/2020 at 10:03PM

22
#2059 - みむら / @rnirnu

02/15/2020 at 01:51PM

22
#2060 - stretchy / @stretch11013132

02/15/2020 at 06:36PM

22
#2061 - howanto / @ho_wan_

02/15/2020 at 09:09PM

22
#2062 - Matthew / @Burfield12

02/17/2020 at 10:24PM

22
#2063 - hwnd / @harlinwt

02/17/2020 at 10:47PM

22
#2064 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 10:14AM

22
#2065 - Ard / @kokojarjar

02/18/2020 at 11:01AM

22
#2066 - Jon Karl Sigurdsson / @Math_Meditation

02/19/2020 at 11:02PM

22
#2067 - Strages / @Strages2k

02/22/2020 at 10:05PM

22
#2068 - osondoar / @osondoar

02/24/2020 at 04:35AM

22
#2069 - David Hume / @djh95

02/25/2020 at 10:36PM

22
#2070 - Scott G. / @ScottG489

02/26/2020 at 01:28AM