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

7001 active golfers, 31744 entries

Leaderboard (lowest score wins):
22
#1471 - Pompo Stenberg / @pompost

09/28/2018 at 12:34PM

22
#1472 - Mr PewPew / @mrpewpew2

09/29/2018 at 06:31AM

22
#1473 - Alyssa Verkade / @AlyssaVerkade

10/01/2018 at 01:59AM

22
#1474 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:34AM

22
#1475 - Roger Bongers / @RogerBongers

10/02/2018 at 01:52AM

22
#1476 - golgi / @gloggyapparatus

10/02/2018 at 09:06AM

22
#1477 - Yogesh Lonkar / @yogeshlor

10/03/2018 at 07:49AM

22
#1478 - Jonghyun Yun / @JonghyunYun

10/03/2018 at 12:32PM

22
#1479 - nobody that important / @nobodythatimpo2

10/07/2018 at 08:49PM

22
#1480 - Taylor Shane Hawkins / @underempire

10/08/2018 at 02:24PM

22
#1481 - Yannick / @Malnoc

10/09/2018 at 12:54PM

22
#1482 - electro_nic / @electro_nic

10/09/2018 at 03:25PM

22
#1483 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 11:52AM

22
#1484 - Tuomas Jokioja / @TJokioja

10/10/2018 at 02:13PM

22
#1485 - James LaChance / @FatBoyXPC

10/11/2018 at 06:30AM

22
#1486 - Pak Wing / @_Pak_Wing_

10/11/2018 at 08:52AM

22
#1487 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 12:49PM

22
#1488 - goldenlimpay / @goldenlimpay

10/12/2018 at 11:51AM

22
#1489 - Sebastian Korten / @FlashKorten

10/13/2018 at 11:09AM

22
#1490 - Alejandro Santander / @_ajsantander

10/14/2018 at 02:17AM

22
#1491 - Chris Budetti / @ChrisBudetti

10/14/2018 at 11:18AM

22
#1492 - Dima / @Dima88806680

10/14/2018 at 11:18AM

22
#1493 - Dax / @zacoxi

10/15/2018 at 05:22AM

22
#1494 - Dax / @daaawx

10/15/2018 at 05:50PM

22
#1495 - Joe Cabezas / @JoeCabezas

10/15/2018 at 11:51PM

22
#1496 - tskepla / @tskepla

10/17/2018 at 05:26AM

22
#1497 - ゴリラ@ウホウホウホウホウウホウホウホウホウウホウホウホウホウウホウホウホウホウウホウホウホウホウウ / @gorilla0513

10/19/2018 at 01:28AM

22
#1498 - Владек / @escept1c

10/21/2018 at 10:27PM

22
#1499 - Sxcy / @SxcyX

10/23/2018 at 09:27PM

22
#1500 - Andy Aldo Dharmawan / @andyyaldoo

10/24/2018 at 02:45AM