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

6717 active golfers, 30347 entries

Leaderboard (lowest score wins):
22
#1771 - will / @willpnw

05/15/2019 at 04:47AM

22
#1772 - arsi arola / @mos_kiitto

05/15/2019 at 11:07AM

22
#1773 - Damian Rodriguez / @damianrr

05/15/2019 at 01:47PM

22
#1774 - Vitaly Sinilin / @unterwulf

05/15/2019 at 05:24PM

22
#1775 - edulim / @edulim2

05/16/2019 at 12:50AM

22
#1776 - Leiser Fernández / @leiserfg

05/16/2019 at 08:52PM

22
#1777 - Miłosz Łakomy / @foobar01123

05/17/2019 at 05:17AM

22
#1778 - maximilian / @maximil61408276

05/17/2019 at 10:57PM

22
#1779 - David McDonald / @dmcdona

05/18/2019 at 10:55PM

22
#1780 - Loïc Carr / @dimtion

05/20/2019 at 03:25AM

22
#1781 - 谢志文 / @BZCtUASDnHVVof5

05/20/2019 at 10:59AM

22
#1782 - Nick Anishenko / @NAnishenko

05/21/2019 at 08:35AM

22
#1783 - alexandrasou / @alexandrasou2

05/22/2019 at 11:43AM

22
#1784 - Seunghun Lee / @earlbread

05/24/2019 at 01:26AM

22
#1785 - aggums / @touhoueurobeat

05/25/2019 at 07:23PM

22
#1786 - Ralf Brunckhorst / @ralfbrunck

05/28/2019 at 08:46PM

22
#1787 - sitadivon / @sitadivon1

05/29/2019 at 03:11AM

22
#1788 - Hans / @webmixers

05/29/2019 at 05:36AM

22
#1789 - Liu Hao / @Tps100

05/30/2019 at 01:47AM

22
#1790 - Kevin Kuchta / @kkuchta

05/30/2019 at 03:17PM

22
#1791 - El Carpet / @elcarpet

05/31/2019 at 02:13PM

22
#1792 - laerling / @laerling1

05/31/2019 at 03:42PM

22
#1793 - Kim bong yeon / @socoolbear

06/01/2019 at 09:30AM

22
#1794 - Kevin V / @kvelcich

06/03/2019 at 10:48PM

22
#1795 - James Whitlock / @Keitarusm

06/05/2019 at 03:26PM

22
#1796 - Tim Dean / @Tmdean

06/06/2019 at 03:51PM

22
#1797 - David / @Liimero

06/06/2019 at 07:28PM

22
#1798 - Will Durney / @WillDurney

06/06/2019 at 09:16PM

22
#1799 - Sæther / @baltre1

06/06/2019 at 11:33PM

22
#1800 - Andrew Wray / @AndrewWray8

06/07/2019 at 02:18AM