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

7063 active golfers, 32034 entries

Leaderboard (lowest score wins):
22
#2251 - Adrien Lemaire ドリ / @Adrien_Lemaire_

09/28/2020 at 09:36AM

22
#2252 - Alice / @Alice10204425

09/29/2020 at 09:45PM

22
#2253 - mstronam / @mstronam

09/30/2020 at 03:36PM

22
#2254 - Nazrulla / @Nazrull37098421

10/03/2020 at 07:03PM

22
#2255 - Er St / @ErSt46286501

10/05/2020 at 05:52PM

22
#2256 - Ashe Braum / @ashe_braum

10/06/2020 at 11:55AM

22
#2257 - hi I'm anxious ✨ / @startresse

10/07/2020 at 07:42PM

22
#2258 - Michael Bui / @Miik4chu

10/08/2020 at 10:15AM

22
#2259 - Matt Sullivan / @fromite459_8

10/08/2020 at 03:25PM

22
#2260 - Hristo Kamenov / @KamenovHristo

10/10/2020 at 02:11PM

22
#2261 - Franz Kirchhoff / @kirchhoff_f

10/10/2020 at 07:02PM

22
#2262 - ygun / @ygun

10/12/2020 at 07:03PM

22
#2263 - jonas brothers lover / @grossiau

10/14/2020 at 10:12PM

22
#2264 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 07:47AM

22
#2265 - AAbraxas / @AAbraxas1

10/15/2020 at 06:58PM

22
#2266 - Markus Aspegren / @Markuso213

10/16/2020 at 06:45PM

22
#2267 - Arnór Eyvar / @ArnorEyvar

10/17/2020 at 09:59PM

22
#2268 - Wickex / @Wickexx

10/18/2020 at 09:45AM

22
#2269 - MySelf / @okmslf

10/18/2020 at 01:19PM

22
#2270 - Leland Paul Kusmer / @lelandpaul

10/20/2020 at 02:37PM

22
#2271 - Henry MATHEISEN / @hmatheisen

10/20/2020 at 03:27PM

22
#2272 - dotvimrc / @dotvimrc1

10/21/2020 at 06:39AM

22
#2273 - Jakub Wagner / @Jakub1019

10/22/2020 at 03:00PM

22
#2274 - LeCodeurFou / @le_codeur

10/23/2020 at 02:18PM

22
#2275 - Hossein Yousefi / @u_hossein

10/23/2020 at 02:23PM

22
#2276 - Rodrigo Santa Cruz / @rstcruzo

10/24/2020 at 06:06AM

22
#2277 - wilsonept / @wilsonept1

10/24/2020 at 04:39PM

22
#2278 - Kilian / @Kilian63634409

10/27/2020 at 06:26PM

22
#2279 - Josh Swift / @Swiftyfish14

10/28/2020 at 12:27PM

22
#2280 - LCY / @Chooneh

10/29/2020 at 06:35AM