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):
48
#7321 - Micha / @michman89

08/06/2016 at 03:19PM

48
#7322 - Byaruhanga Franklin / @byaruhaf

09/18/2016 at 12:20AM

48
#7323 - simonreborn / @sixthevicious

10/18/2016 at 09:27AM

48
#7324 - jpiva / @jpiva

04/19/2017 at 08:05PM

48
#7325 - Giorgi Jibladze / @Jibla

12/26/2017 at 11:36AM

48
#7326 - Brent Wade / @BrentWade_

09/06/2018 at 01:29PM

48
#7327 - Marwan Baghdad / @____marwan

10/02/2018 at 10:35PM

48
#7328 - Noah Golub / @GolubNoah

12/25/2018 at 02:56PM

48
#7329 - for_vimgolf / @for_vimgolf

01/29/2019 at 10:58AM

48
#7330 - 曾权 / @3bbPIUq783Pn9Bw

04/02/2019 at 04:46PM

48
#7331 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 06:35PM

48
#7332 - Winterburn / @Winterburned

09/16/2019 at 05:18AM

48
#7333 - Kumaran / @kumaran-14

12/03/2024 at 10:39PM

49
#7334 - Tomohiro Imaizumi / @imaizume

12/24/2016 at 12:10PM

49
#7335 - Youngwoong Choi / @byrage91

01/04/2017 at 05:09AM

49
#7336 - Michael Bylstra / @mbylstra

09/17/2017 at 01:22AM

49
#7337 - Emmanuel Fuentes / @manufuents

11/20/2017 at 10:09PM

49
#7338 - skamelone / @skamelone

10/01/2018 at 07:46PM

49
#7339 - Santiago Weight / @SantiagoWeight

02/28/2019 at 10:58AM

49
#7340 - Johnny Wang / @johnnykwwang

04/28/2019 at 11:36PM

49
#7341 - 莫默 / @huaxiaohun

12/27/2020 at 02:46PM

49
#7342 - Hirak Naik / @HnHirak

10/10/2022 at 11:08AM

49
#7343 - Ryan / @Rdgy567889

04/22/2023 at 01:50PM

49
#7344 - stukame / @stukame

08/26/2023 at 07:35PM

49
#7345 - cfaith16 / @cfaith16

05/03/2024 at 10:25AM

50
#7346 - Frank.C / @Zeronance

09/03/2016 at 08:54AM

50
#7347 - Adam Kożuch / @adamkozuch

04/02/2017 at 10:43AM

50
#7348 - andrea_codes / @andrealobster

07/05/2017 at 07:41AM

50
#7349 - なかの / @Nemu_Le0ne

11/20/2017 at 08:49AM

50
#7350 - Ralf Beine / @clashtheweb

08/31/2018 at 01:51PM