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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
54
#7381 - Chris Wong / @ChrisWongNHS

08/19/2018 at 08:19AM

54
#7382 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:30AM

54
#7383 - Sina Karimi / @creamycode

05/07/2019 at 12:22PM

54
#7384 - Daming Lu / @Daming_Lu

11/13/2019 at 07:48PM

54
#7385 - 13tricks / @13tricks1

02/29/2020 at 06:05PM

54
#7386 - Adrien Guillement / @AdrienGuillem

08/06/2020 at 11:46AM

54
#7387 - Justin Fisher / @justinfisherr

11/02/2024 at 02:03AM

55
#7388 - he / @HeRedemption

06/22/2016 at 08:28AM

55
#7389 - jan fabian / @janfabian___

08/25/2016 at 09:37AM

55
#7390 - Nícolas Tarzia / @nicolastarzia

09/19/2017 at 07:12PM

55
#7391 - Shane Gibbs / @fuse512

08/28/2018 at 01:51AM

55
#7392 - serggeiii / @serggeiii

02/15/2019 at 06:30AM

55
#7393 - poly000 / @_poly000

05/29/2021 at 11:55PM

56
#7394 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/20/2020 at 06:44AM

57
#7395 - Eric Leung / @erictleung

12/06/2015 at 11:22AM

57
#7396 - Iman Tabrizian / @ImanTabrizian

03/09/2016 at 09:51PM

57
#7397 - Will Bradley / @wbbradley

08/08/2017 at 04:42PM

57
#7398 - J Rhine / @joelrhine

02/06/2018 at 04:04AM

57
#7399 - musiquoman / @musiquoman007

11/12/2018 at 11:22AM

57
#7400 - Vermeire Marie-France / @FranceVermeire

11/14/2018 at 10:26AM

57
#7401 - Kiran Kumar Manku / @kirankumarmanku

03/27/2020 at 11:35PM

57
#7402 - Sam Christensen / @samuelchriste

11/24/2020 at 04:37AM

58
#7403 - Unityお姉さん♡ / @unichan___

06/10/2016 at 04:42AM

58
#7404 - ᥬ👨‍🦲᭄ / @atu_hage

04/18/2023 at 11:33AM

59
#7405 - Mick Niepoth / @mickniepoth

10/27/2017 at 02:00PM

59
#7406 - e / @thestudygoddess

11/16/2020 at 05:50AM

60
#7407 - vsevolod / @vsevolodorlov

01/27/2016 at 07:46AM

60
#7408 - marcel novotny / @Marcelmarnov

03/19/2018 at 06:06PM

60
#7409 - David / @davidrft

03/22/2018 at 09:23PM

60
#7410 - minercrafterbla / @minercrafterbla

04/21/2020 at 09:27PM