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
#1351 - etherflow / @etherfl0w

06/12/2018 at 08:25AM

22
#1352 - 中野 彰 / @M__tech

06/13/2018 at 01:59AM

22
#1353 - rg thomas / @rgt47

06/16/2018 at 06:23AM

22
#1354 - Christopher Oldfield / @humantree

06/19/2018 at 02:47AM

22
#1355 - AnaverageJoe / @AnaverageJ

06/19/2018 at 11:56AM

22
#1356 - Majsmanne / @Majsmanne

06/20/2018 at 05:27PM

22
#1357 - Paul Kirby / @AirbornePorcine

06/21/2018 at 03:03PM

22
#1358 - beenie / @_beeniee_

06/24/2018 at 01:36PM

22
#1359 - j / @pandiloko

06/24/2018 at 04:26PM

22
#1360 - Tom ten Thij / @eco_coder

06/27/2018 at 11:57AM

22
#1361 - lilei0825 / @lilei08251

06/28/2018 at 07:22AM

22
#1362 - 3admin / @achtebaby

06/28/2018 at 09:05PM

22
#1363 - Karel Vervaeke / @karel1980

06/29/2018 at 02:43PM

22
#1364 - Catalin Irimie / @CatalinIrimie

06/29/2018 at 09:21PM

22
#1365 - Alej / @mephl

06/30/2018 at 09:13PM

22
#1366 - Joachim / @jodles89

07/01/2018 at 10:16PM

22
#1367 - Henry Woolenthorpe / @woolenthorpe

07/02/2018 at 08:37AM

22
#1368 - miro astore / @miroastore

07/04/2018 at 04:10AM

22
#1369 - Zak Wright / @TheZakWright

07/07/2018 at 03:49AM

22
#1370 - tmc / @traviscline

07/07/2018 at 06:18AM

22
#1371 - Max / @max_hoyd

07/07/2018 at 09:28AM

22
#1372 - Puj / @MrPuj

07/07/2018 at 09:41PM

22
#1373 - xer0.5ive / @Bibekshah

07/09/2018 at 02:54PM

22
#1374 - JohnnyVim / @VimJohnny

07/09/2018 at 04:47PM

22
#1375 - Darius Smaliukas / @daraz999

07/11/2018 at 10:35AM

22
#1376 - Artur Mróz / @MrozArtur

07/11/2018 at 07:59PM

22
#1377 - Gareth Miller / @CTingCTer

07/12/2018 at 09:52AM

22
#1378 - Francesco Sacchi / @depsir

07/14/2018 at 01:49PM

22
#1379 - Chris / @143Pi

07/15/2018 at 11:10AM

22
#1380 - 최종원 / @lastone9182

07/15/2018 at 03:38PM