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
#2341 - Matti Sairanen / @MattiSairanen

11/12/2016 at 10:30AM

23
#2342 - Joe Chan / @joech4n

11/14/2016 at 07:44PM

23
#2343 - toddagibson / @toddagibson

11/19/2016 at 08:28PM

23
#2344 - Dillon Kearns / @dillontkearns

11/26/2016 at 05:23AM

23
#2345 - Bill Booth / @ohiopyle

11/27/2016 at 09:12AM

23
#2346 - Miguel Jaques / @migJaques

12/02/2016 at 01:40PM

23
#2347 - Peter Chynoweth / @pcchynoweth

12/10/2016 at 12:13PM

23
#2348 - Matt Wittmann / @mttwttmnn

12/11/2016 at 04:23AM

23
#2349 - ABS JOHNSON / @ABSJOHNSON1

12/16/2016 at 02:23AM

23
#2350 - Michael / @linux478

12/24/2016 at 04:10PM

23
#2351 - Abc Def / @phweiss1

01/03/2017 at 02:24PM

23
#2352 - Social Botolinum / @SocialBot4

01/04/2017 at 09:45PM

23
#2353 - Nxgr / @Nxgr_l

01/05/2017 at 02:49PM

23
#2354 - 84shin / @ssssww

01/11/2017 at 06:38PM

23
#2355 - Thomas Geßler / @th_gessler

01/22/2017 at 04:08PM

23
#2356 - Daniel Hogan / @danielhogan21

01/25/2017 at 02:34AM

23
#2357 - Charlier / @Charlicanman

01/26/2017 at 08:29PM

23
#2358 - Avimgolfer / @l718232

01/30/2017 at 03:05AM

23
#2359 - Joel T / @joel31415

01/30/2017 at 02:42PM

23
#2360 - Aaron Sikes / @courajs

02/01/2017 at 02:30AM

23
#2361 - Ymte Jan Broekhuizen / @ymtejan

02/01/2017 at 11:35PM

23
#2362 - Peter Brown / @brow1067

03/07/2017 at 04:24PM

23
#2363 - Nikola Dodik / @dodiknikola

03/20/2017 at 02:13PM

23
#2364 - maaaaaaacs / @maaaaaacs

03/22/2017 at 10:58AM

23
#2365 - Reinaldo Astudillo / @astudillor

03/22/2017 at 10:56PM

23
#2366 - Aman Singhal / @helixinverse

03/30/2017 at 03:57PM

23
#2367 - Clyde Fare / @ClydeFare

04/13/2017 at 04:59PM

23
#2368 - Dónal Mac An Rí / @donalmacanri

04/20/2017 at 02:01AM

23
#2369 - Deann Vargas / @geek_dean

04/22/2017 at 03:22PM

23
#2370 - Rene Barroso / @Kasper_34

04/24/2017 at 04:24PM