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

7239 active golfers, 32758 entries

Leaderboard (lowest score wins):
33
#5881 - Charleston / @cv9828

11/28/2015 at 12:33AM

33
#5882 - Diego Goncalves / @DiegoGoncalve19

11/28/2015 at 07:37PM

33
#5883 - Danijel Mitar / @DanijelMitar

12/13/2015 at 05:01PM

33
#5884 - Cerborr Rizescu / @dutenpizdamatii

12/22/2015 at 09:21AM

33
#5885 - Jan / @GrzegorowskiJan

01/01/2016 at 11:56PM

33
#5886 - wilddog64 / @chengkai318

01/06/2016 at 09:57PM

33
#5887 - KongFu / @_kongfu

01/16/2016 at 09:01AM

33
#5888 - Kenny Wright / @KenAkaMrWright

01/28/2016 at 07:28PM

33
#5889 - Chris Elston / @CAElston

01/29/2016 at 11:39PM

33
#5890 - Maciej Panasiewicz / @Grunthor1

02/04/2016 at 07:21PM

33
#5891 - Laura Beth / @generationregex

02/10/2016 at 03:09PM

33
#5892 - KenZilla / @aenkil

02/17/2016 at 11:36AM

33
#5893 - Connor Freeman / @conrfrmn

02/22/2016 at 11:49PM

33
#5894 - mbd / @mbd

02/27/2016 at 12:54AM

33
#5895 - Tran Duc Thang / @thangtd90

03/06/2016 at 08:24AM

33
#5896 - Leo Baran / @LeoLnb18

03/08/2016 at 08:49PM

33
#5897 - Zach Kirsch / @sportsaremyjam

05/02/2016 at 04:33AM

33
#5898 - Max Oberberger / @chiemseesurfer

05/03/2016 at 08:02AM

33
#5899 - Ketzer / @KetzerX

05/16/2016 at 03:48PM

33
#5900 - Michael Cramer / @mlcramer

05/24/2016 at 10:02AM

33
#5901 - Eric エリック / @ericgroom

05/27/2016 at 11:21PM

33
#5902 - Nicola Coretti / @NiCoRetti

05/29/2016 at 09:22AM

33
#5903 - blah blah / @ds_blah

05/30/2016 at 09:05PM

33
#5904 - Justme0_ / @Justme0__

05/31/2016 at 01:20PM

33
#5905 - Albert Le Batteux / @Aera_style

06/02/2016 at 03:36PM

33
#5906 - Jörg Herbst / @terrible_herbst

06/04/2016 at 07:51PM

33
#5907 - D W VimGolf / @DVimgolf

06/14/2016 at 09:20PM

33
#5908 - Brian Olpin / @bolpin

06/14/2016 at 09:21PM

33
#5909 - Juampy NR / @juampynr

07/18/2016 at 11:08AM

33
#5910 - Jamison Bryant / @robojamison

07/19/2016 at 02:46PM