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

6736 active golfers, 30431 entries

Leaderboard (lowest score wins):
34
#5761 - Tarcísio Gruppi / @txgruppi

01/28/2017 at 11:25PM

34
#5762 - Michael Redman / @MikeyyRedman

02/22/2017 at 12:16PM

34
#5763 - John Wilson / @Login4anonymity

03/09/2017 at 01:50AM

34
#5764 - Joseph Bonilla / @JosephB95085049

03/20/2017 at 03:18PM

34
#5765 - Bryant Pxp / @pxp_bryant

03/28/2017 at 03:49PM

34
#5766 - あ / @IPgtG4UzG1WejHU

03/29/2017 at 05:05PM

34
#5767 - Jess Martin / @jessmartin

04/12/2017 at 07:23PM

34
#5768 - Kjell De Backer / @k_debacker

04/16/2017 at 04:54PM

34
#5769 - Wanelo / @Wanelo

05/03/2017 at 08:56PM

34
#5770 - Collen Jones / @collenjones

06/01/2017 at 05:49PM

34
#5771 - albert / @albert_xi_cn

06/27/2017 at 08:20AM

34
#5772 - Dave / @junkmailinbox0

07/01/2017 at 09:05AM

34
#5773 - Gilad Oved / @goved12

07/15/2017 at 04:22AM

34
#5774 - Thomas Müller / @ThomasM04279

07/30/2017 at 08:44PM

34
#5775 - Gavin Faris / @gavin_faris

08/24/2017 at 08:16PM

34
#5776 - Mathias Dahlhaus / @mgdahlhaus

08/25/2017 at 02:10PM

34
#5777 - German Robayo Paz / @germanrobayo33

08/25/2017 at 10:25PM

34
#5778 - Thomas Royer / @Cydonia7

09/14/2017 at 03:30PM

34
#5779 - Daniel / @djacobs7

09/19/2017 at 07:40PM

34
#5780 - Craig Ramey / @TheRamey

10/04/2017 at 04:12PM

34
#5781 - Giovanni Benussi / @giovannibenussi

10/10/2017 at 06:48PM

34
#5782 - vlaw / @wentao

11/10/2017 at 08:42AM

34
#5783 - SumOfAllN00bs / @SumOfAllN00bs

11/21/2017 at 09:22PM

34
#5784 - Ryan Miller / @andRyanMiller

12/12/2017 at 09:54PM

34
#5785 - Vimgolfer-throwaway / @vim_throwaway

12/19/2017 at 12:58PM

34
#5786 - ben / @benb_123

01/09/2018 at 04:34AM

34
#5787 - Benno Fünfstück / @bennofus

01/30/2018 at 11:31AM

34
#5788 - Lalit Kumar / @lalitmee

02/09/2018 at 08:56PM

34
#5789 - Boris Makogonyuk / @BoroMak

02/26/2018 at 08:31AM

34
#5790 - Tulsi Sapkota / @sapkota_tolsee

04/23/2018 at 06:28AM