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

6615 active golfers, 29867 entries

Leaderboard (lowest score wins):
35
#5851 - Sam Ringleman / @theRingleman

09/29/2017 at 05:11PM

35
#5852 - DrGodCarl / @DrGodCarl

10/04/2017 at 02:44PM

35
#5853 - Ruben De Smet / @rubdos

11/08/2017 at 05:40PM

35
#5854 - Justin Mullin / @JustinMullin

11/14/2017 at 03:54AM

35
#5855 - Michael Heyman / @michaelheyman

11/16/2017 at 02:25AM

35
#5856 - Georgy Komarov / @GeorgyKomarov

11/24/2017 at 03:40PM

35
#5857 - duxifuhivo@p33.org / @duxifuhivo

12/14/2017 at 12:32PM

35
#5858 - Ahmed Hasan / @ahmedrhasan

12/22/2017 at 06:49PM

35
#5859 - Dmitriy Meleshko / @mitrio2

01/16/2018 at 08:32PM

35
#5860 - Sourciluss / @sourciluss

01/22/2018 at 12:07AM

35
#5861 - Will Toher / @WillFAVI

02/04/2018 at 12:23AM

35
#5862 - Patrick / @example_patrick

03/09/2018 at 09:34PM

35
#5863 - twitbot / @twitbort

04/18/2018 at 08:58PM

35
#5864 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:24PM

35
#5865 - chen xi / @cx_80

05/07/2018 at 02:30PM

35
#5866 - Master Snipes / @snipes_master

05/29/2018 at 12:31AM

35
#5867 - testy / @KeiAmeUV

06/01/2018 at 10:14AM

35
#5868 - z0c / @zerocabal

06/02/2018 at 01:15PM

35
#5869 - Christian Köstlin / @gizmomogwai

06/18/2018 at 09:49PM

35
#5870 - TK / @defnottk

07/04/2018 at 07:15PM

35
#5871 - もんたるじあ / @kadeo1212

07/05/2018 at 01:58PM

35
#5872 - Walker Byrnes / @ByrnesWalker

07/06/2018 at 02:27PM

35
#5873 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:25PM

35
#5874 - Max Petersson / @ispymarre

08/24/2018 at 08:14PM

35
#5875 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 07:02AM

35
#5876 - Paul Adams / @saladpuma

08/29/2018 at 04:14PM

35
#5877 - burnerAccount52442 / @account52442

08/31/2018 at 01:01PM

35
#5878 - Jon Kartago Lamida / @lamida

09/11/2018 at 09:44AM

35
#5879 - CAO Tien Duc / @tienduccao

09/11/2018 at 08:21PM

35
#5880 - Naz / @Naz29407955

09/15/2018 at 09:04AM