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

5871 active golfers, 26339 entries

Leaderboard (lowest score wins):
22
#301 - zmo / @guyzmo

01/20/2016 at 10:28AM

22
#302 - Tim Suchanek / @TimSuchanek

01/20/2016 at 11:45PM

22
#303 - brandon salmon / @Exiledz

01/21/2016 at 07:32AM

22
#304 - vimcoder / @Khanal12Uttam

01/21/2016 at 07:51PM

22
#305 - Mor Zusman / @mor_zusman

01/21/2016 at 10:42PM

22
#306 - Benjamin Combourieu / @ben_combourieu

01/22/2016 at 02:04PM

22
#307 - Talent.io / @Talent_io

01/22/2016 at 02:15PM

22
#308 - andrialexandrou / @io_andri

01/23/2016 at 09:17PM

22
#309 - Hawk Newton / @hawknewton

01/26/2016 at 01:17AM

22
#310 - Clint Ryan / @_eastwd

01/26/2016 at 12:33PM

22
#311 - Frederik Klama / @fklama

01/27/2016 at 11:00AM

22
#312 - Sassan Haradji / @sassanh

01/28/2016 at 02:41AM

22
#313 - uraurayama / @uraurayama

01/28/2016 at 07:55AM

22
#314 - Joy Gao / @joygao

01/28/2016 at 09:21PM

22
#315 - Trevor Rothaus / @trevor_sg

01/29/2016 at 10:54PM

22
#316 - Devin Baillie / @devinbaillie

01/30/2016 at 12:16AM

22
#317 - Kevin Grandemange / @tic_le_polard

01/30/2016 at 02:31PM

22
#318 - Sheapel User / @sheapeluser

02/01/2016 at 08:28AM

22
#319 - Daniel Suh / @18kehops

02/01/2016 at 11:08AM

22
#320 - Victor Gaudard / @gaudardv

02/02/2016 at 05:07PM

22
#321 - あまさん / @surfce

02/03/2016 at 11:05AM

22
#322 - Guillaume Seren / @guillaumeseren

02/03/2016 at 02:51PM

22
#323 - Thijs van den Anker / @thijsvdanker

02/04/2016 at 08:27AM

22
#324 - stb tra / @stbtra

02/04/2016 at 09:16AM

22
#325 - royer / @RoyerMoyer1

02/07/2016 at 06:33PM

22
#326 - Marta / @AruizMarta

02/08/2016 at 10:47PM

22
#327 - John Smith / @literacyisgood

02/09/2016 at 05:18PM

22
#328 - Merchi Gz / @MerchiGz

02/09/2016 at 08:08PM

22
#329 - trbvn / @trbvntrbvn

02/10/2016 at 03:38PM

22
#330 - James Burns / @James_Ian_Burns

02/11/2016 at 03:33AM