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

6722 active golfers, 30369 entries

Leaderboard (lowest score wins):
32
#5281 - Vojtěch Pejša / @7Vojta7

01/25/2017 at 03:30PM

32
#5282 - nitin chadha / @upcomingnewton

01/26/2017 at 09:15AM

32
#5283 - Adam Ingram-Goble / @adamaig

02/19/2017 at 06:58PM

32
#5284 - Evgeny Morozov / @Evmorov

02/25/2017 at 06:13PM

32
#5285 - David Zhang / @borkmachine

02/27/2017 at 12:31AM

32
#5286 - Joen Mauritzon / @ThisIsJoen

04/12/2017 at 12:21PM

32
#5287 - xavier beynon / @BeynonXavier

04/18/2017 at 03:53AM

32
#5288 - raffitz / @raffitz

04/19/2017 at 05:15PM

32
#5289 - Grégoire Willmann / @GWllmnn

04/25/2017 at 12:45PM

32
#5290 - 「Nayed」 / @NayedSA

04/25/2017 at 02:47PM

32
#5291 - Bruno Diniz / @DinizBR

04/28/2017 at 11:36AM

32
#5292 - Michael Richard / @alfarichard

05/12/2017 at 01:13PM

32
#5293 - Tushaar Kamat / @KamatTushaar

05/14/2017 at 02:24AM

32
#5294 - python-tweepy / @python_tweepy

05/14/2017 at 09:49PM

32
#5295 - Sean Reimer / @seanreimer

05/23/2017 at 08:18PM

32
#5296 - Michael Pennington / @Michael55970625

06/05/2017 at 04:08PM

32
#5297 - Ayush Sachdeva / @ayush000

06/05/2017 at 04:19PM

32
#5298 - Joakim Ahlgren / @AhlgrenJoakim

06/06/2017 at 06:14PM

32
#5299 - I akira / @niyarium

06/22/2017 at 01:00PM

32
#5300 - Peter Önneby / @poenneby

08/02/2017 at 09:43AM

32
#5301 - Vitaly / @avg11194

08/08/2017 at 08:37PM

32
#5302 - Saul Hardman / @saulhardman

08/09/2017 at 08:23AM

32
#5303 - Sambor Shellz / @thsowa

08/19/2017 at 06:31PM

32
#5304 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 12:26PM

32
#5305 - Zel / @Zel98836552

09/07/2017 at 06:33PM

32
#5306 - ph1l / @ph1l12

09/12/2017 at 02:19PM

32
#5307 - Charles-Axel Dein / @d3in

09/20/2017 at 10:54AM

32
#5308 - Antonio Sánchez / @asanchezc_h4f

09/28/2017 at 01:28AM

32
#5309 - Rosemary / @up_thyme

10/06/2017 at 08:13PM

32
#5310 - Alexander Gratner / @gratner3

10/12/2017 at 06:30PM