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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#661 - i5513 / @i5513

10/12/2016 at 09:56PM

22
#662 - esquifit / @henroboke

10/13/2016 at 06:20PM

22
#663 - Gabriel Gallardo / @gabrielgallardo

10/15/2016 at 06:20AM

22
#664 - Rafuaeru / @fuckingnickname

10/16/2016 at 09:54AM

22
#665 - Brian Mego / @Major251

10/16/2016 at 10:16PM

22
#666 - Josh Callender / @Saponifi3d

10/17/2016 at 01:26AM

22
#667 - Кирилл / @cyril_sad

10/17/2016 at 08:00AM

22
#668 - Piotr Cyrankiewicz / @jedihenryk

10/17/2016 at 08:32PM

22
#669 - João Sousa Andrade / @thejoaosa

10/17/2016 at 10:05PM

22
#670 - Domus Code / @DomusCode

10/18/2016 at 08:12PM

22
#671 - Karl Lundquist / @karllundquist

10/18/2016 at 08:54PM

22
#672 - S33 Dunda / @s33dUnda

10/22/2016 at 12:49AM

22
#673 - 정품비아그라 / @shirano80

10/22/2016 at 05:43AM

22
#674 - Kim Grytøyr / @kimgrytoyr

10/22/2016 at 03:38PM

22
#675 - Pierre Sugar / @sugaryourcoffex

10/23/2016 at 12:30PM

22
#676 - eozd / @e_ozd

10/23/2016 at 12:43PM

22
#677 - Adrian K. Eriksen / @adrianke

10/23/2016 at 02:39PM

22
#678 - Bill Ruddock / @biinari

10/25/2016 at 04:02AM

22
#679 - 子皓翁 / @geniusgordon

10/25/2016 at 05:41AM

22
#680 - Bastiaan Deknudt / @Tionkje

10/25/2016 at 07:17PM

22
#681 - Phoenix / @betentacled

10/25/2016 at 11:30PM

22
#682 - JerryLee / @varXinYuan

10/27/2016 at 11:24AM

22
#683 - F B / @felixbigg

10/27/2016 at 02:15PM

22
#684 - Fluke / @co_NP_complete

10/27/2016 at 11:44PM

22
#685 - Taco V / @LasNachosGolfs

10/28/2016 at 10:06PM

22
#686 - Anas Salah Eddin / @asalaheddin

10/29/2016 at 01:50AM

22
#687 - macmental / @macmental

10/29/2016 at 03:36AM

22
#688 - Kracejic / @kracejic

10/30/2016 at 08:10PM

22
#689 - AntonioWong / @AntonioWong

10/31/2016 at 08:43PM

22
#690 - Joseph Simone / @averagejoey2000

11/01/2016 at 12:26AM