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

6714 active golfers, 30325 entries

Leaderboard (lowest score wins):
34
#5701 - David / @multikaos

09/28/2015 at 02:44PM

34
#5702 - Jeff May / @jnmay87

10/01/2015 at 04:58AM

34
#5703 - The Realest™ / @kurigomi

10/14/2015 at 05:33AM

34
#5704 - Rene Tianco / @murlockslol

10/29/2015 at 12:21AM

34
#5705 - Misbah Khan / @themisbahkhan

10/30/2015 at 04:00PM

34
#5706 - Betoman / @_betoman

11/01/2015 at 12:28AM

34
#5707 - Sage Vaillancourt / @sagev9000

11/04/2015 at 04:20PM

34
#5708 - Ford Perfect / @FordPerfect77

11/04/2015 at 07:28PM

34
#5709 - Valery / @MrComBin

11/20/2015 at 07:59AM

34
#5710 - Justin Harjanto / @YouGotOwnedGirl

11/27/2015 at 07:04PM

34
#5711 - Eric Fay / @PersonaErazed

12/19/2015 at 07:45PM

34
#5712 - Miki Tebeka / @tebeka

01/05/2016 at 01:29PM

34
#5713 - Charles Reynolds / @reynoldscem

01/07/2016 at 04:58PM

34
#5714 - iTech / @iTech__

01/29/2016 at 10:15AM

34
#5715 - dattaz / @dat_taz

02/07/2016 at 05:44PM

34
#5716 - かしゅーなっつ@修行中 / @kashew_nuts

02/18/2016 at 04:34PM

34
#5717 - Omri Yariv / @omriyariv

02/21/2016 at 10:50AM

34
#5718 - Brad Rhodes / @rhodesbrad

02/23/2016 at 05:33AM

34
#5719 - Indian Dope / @caxco93

02/24/2016 at 10:36PM

34
#5720 - _ / @RIPfrank_white

02/26/2016 at 09:39PM

34
#5721 - Craig Hills / @chills42

03/03/2016 at 05:47PM

34
#5722 - jb M / @Jiboo_hey

04/20/2016 at 01:51PM

34
#5723 - Niek de Gooijer / @Xorpio86

04/21/2016 at 03:10PM

34
#5724 - tristan_ph / @tristan_ph

05/11/2016 at 09:10AM

34
#5725 - Nabil Hashmi / @nabilhashmi

06/09/2016 at 02:39PM

34
#5726 - Marc Capell / @marc_capell

06/13/2016 at 08:35AM

34
#5727 - Zsolt Majoros / @mzsoltt

07/12/2016 at 03:51PM

34
#5728 - chris howes / @_chrishowes

07/20/2016 at 01:06AM

34
#5729 - Richard_ / @richardwlaub

07/22/2016 at 02:03AM

34
#5730 - saprative / @saprative

07/31/2016 at 02:11PM