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

6792 active golfers, 30718 entries

Leaderboard (lowest score wins):
22
#1231 - Veljko Dimic / @v2dimic

02/06/2018 at 07:34PM

22
#1232 - xoenx / @xoenx

02/07/2018 at 02:41PM

22
#1233 - neopulsar / @_neopulsar_

02/08/2018 at 01:00AM

22
#1234 - DunkingKruger / @DunkingKruger

02/08/2018 at 03:33AM

22
#1235 - Ondřej Soukup / @goodQuestion_or

02/08/2018 at 08:59PM

22
#1236 - mp / @mp0000

02/11/2018 at 10:26AM

22
#1237 - Ленар / @LShagiev

02/13/2018 at 03:51PM

22
#1238 - z1505804@mvrht.net / @z150580

02/13/2018 at 04:15PM

22
#1239 - ronan doolan / @ronandoolan

02/13/2018 at 04:29PM

22
#1240 - Natalie Howes / @NatalieFHowes

02/14/2018 at 08:11PM

22
#1241 - tadashi-aikawa / @Tadashi_MAMAN

02/16/2018 at 03:37PM

22
#1242 - Eugene Zavoloka / @ZavolokaEugene

02/17/2018 at 09:24PM

22
#1243 - ryu gosling / @bbbeloveddd

02/18/2018 at 01:33AM

22
#1244 - Alvaro / @VaroClemente

02/18/2018 at 04:43PM

22
#1245 - André Reigoto / @AndreReigoto

02/20/2018 at 04:46AM

22
#1246 - Brendan G / @Brendan314

02/20/2018 at 09:05PM

22
#1247 - elsie / @elsie06177256

02/22/2018 at 04:07PM

22
#1248 - bruno / @LokoPoggi

02/22/2018 at 10:52PM

22
#1249 - Jens Fahnenbruck / @jigfox

02/23/2018 at 11:06AM

22
#1250 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 05:29PM

22
#1251 - Bart Reynolds / @bartums

02/27/2018 at 12:48AM

22
#1252 - Simon Zeng / @KronicMan

02/27/2018 at 01:12AM

22
#1253 - Michael Welham / @michael_welham

02/27/2018 at 06:53AM

22
#1254 - LC / @leeren

02/28/2018 at 12:01PM

22
#1255 - slicklash / @slicklash

03/01/2018 at 08:49PM

22
#1256 - Dan Cherouny / @cherealnice

03/05/2018 at 11:18PM

22
#1257 - kashikasitaro / @kashikasita

03/06/2018 at 01:15AM

22
#1258 - azzal07 / @azzal07

03/06/2018 at 02:24PM

22
#1259 - GreenPinguin / @GreenPinguin2

03/07/2018 at 02:27PM

22
#1260 - Alex Chalk / @alexchalk17

03/08/2018 at 10:06PM