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

6056 active golfers, 27217 entries

Leaderboard (lowest score wins):
43
#5881 - Sebastian Aburto / @saburto_m

09/19/2017 at 02:58PM

43
#5882 - Ishay rabi / @IshayRabi

11/03/2017 at 03:23PM

43
#5883 - Dmitry Petukhov / @dphov

01/16/2018 at 08:00PM

43
#5884 - Bret Cadle / @BretCadle

05/04/2018 at 02:57PM

43
#5885 - Nankai Pan / @cfanpnk

07/09/2018 at 09:01PM

43
#5886 - Greg / @Greg23098229

10/18/2018 at 05:14PM

43
#5887 - Di Peng / @DCodier

10/31/2018 at 04:50AM

43
#5888 - MGJoe93 / @mgjoe93

03/02/2019 at 11:07AM

43
#5889 - Tim W / @TheArchdukeTim

03/05/2019 at 05:10AM

43
#5890 - Hunter Booth / @Hbooth17

05/08/2019 at 08:12PM

43
#5891 - samuel / @samuelwang222

05/17/2019 at 09:56PM

43
#5892 - Juang Wiantoro 🐪 / @broerjuang

11/08/2019 at 08:19PM

43
#5893 - harry / @harry59447962

11/14/2019 at 02:57PM

44
#5894 - hoemoon / @hoemoon

01/09/2016 at 11:17AM

44
#5895 - AkashdeepKahlon / @AkashKahlon2

01/14/2016 at 05:36PM

44
#5896 - Brennen Awana / @BrennenAwana

07/30/2016 at 03:44AM

44
#5897 - Oskari Saari / @shredu92

09/02/2016 at 04:41AM

44
#5898 - Rajath Ramakrishna / @rrajath

01/24/2017 at 01:28AM

44
#5899 - Alec Zhang / @alecjzhang

04/18/2017 at 08:32PM

44
#5900 - vim golfer / @vimgolfer2

12/11/2017 at 12:53AM

44
#5901 - Demur Nodia / @demurnodia

02/15/2018 at 07:16AM

44
#5902 - Jing Jing / @williamjingron1

03/04/2018 at 09:43AM

44
#5903 - mariel / @tiny_jupiter

04/06/2018 at 06:26PM

44
#5904 - Zorvy / @Zorvyyy

08/16/2018 at 09:08PM

44
#5905 - diego olivera / @alejo_olivera

09/19/2018 at 08:58PM

44
#5906 - prozactool / @prozactool

10/12/2018 at 05:33AM

44
#5907 - Clement Thomas / @clement1289

04/05/2019 at 08:47AM

44
#5908 - Alex C-G 🏳️‍🌈 / @alexcg

04/24/2019 at 05:15AM

44
#5909 - Favio Manriquez / @favrik

05/21/2019 at 05:46AM

44
#5910 - Chris Gammell / @Chris_Gammell

09/20/2019 at 09:12PM