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

6784 active golfers, 30704 entries

Leaderboard (lowest score wins):
23
#2281 - Chris Brown / @engineercyb

02/24/2016 at 01:13AM

23
#2282 - zane hitchcox / @zwhitchcox

02/24/2016 at 03:53PM

23
#2283 - fzort / @fzort

02/28/2016 at 12:27PM

23
#2284 - Jan Bundesmann / @janbundesmann

03/01/2016 at 10:44AM

23
#2285 - ค×ɛเ / @pwnedary

03/02/2016 at 04:28PM

23
#2286 - hans peter / @mullovc

03/21/2016 at 06:37PM

23
#2287 - Luc Trudeau / @LT_Pragmatic

04/09/2016 at 01:09AM

23
#2288 - f00b8tr / @f00b8tr5

04/09/2016 at 03:38AM

23
#2289 - E Both / @enboth

04/13/2016 at 11:23AM

23
#2290 - Juho Vikman / @JuhoIVikman

04/24/2016 at 01:46PM

23
#2291 - Vaughn Cato / @vaughncato

04/25/2016 at 12:01AM

23
#2292 - Kawin Nikomborirak / @nikomborirak

05/02/2016 at 04:42AM

23
#2293 - Lim Chun Leng / @chunleng

05/02/2016 at 04:13PM

23
#2294 - Joseph Barratt / @josephmbarratt

05/02/2016 at 07:36PM

23
#2295 - iikieh / @iikieh

05/06/2016 at 04:35PM

23
#2296 - Steven Moazami / @mong8se

05/08/2016 at 01:21AM

23
#2297 - Ricardo Santos / @TWidXugA

05/14/2016 at 03:24PM

23
#2298 - John Smith / @JohnSmith448816

05/14/2016 at 07:04PM

23
#2299 - Michael / @michael40226613

05/23/2016 at 04:54AM

23
#2300 - Balazeal / @Balazeal

06/01/2016 at 09:14AM

23
#2301 - Jim Kemper / @Jimkemper2

06/05/2016 at 02:33AM

23
#2302 - Dominic Muller / @domgetter

06/08/2016 at 11:30PM

23
#2303 - φ / @phittacus

06/10/2016 at 08:33AM

23
#2304 - Ivo Burkatzki / @ibukat

06/11/2016 at 02:10AM

23
#2305 - Garph0 / @garph0

06/14/2016 at 04:14PM

23
#2306 - Fan Zhang / @ffanzhang

06/14/2016 at 11:18PM

23
#2307 - kuwa / @lrmystp

06/24/2016 at 07:22PM

23
#2308 - Hayden Chudy / @hjc1710

06/25/2016 at 07:31AM

23
#2309 - Alex Rod. / @thealex23ro

06/29/2016 at 07:36PM

23
#2310 - Olik / @oli33k

07/06/2016 at 02:27PM