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

6388 active golfers, 28817 entries

Leaderboard (lowest score wins):
22
#1441 - Sergey Fedorov / @Shade30

09/03/2018 at 07:30PM

22
#1442 - Smith / @SVCSXV

09/03/2018 at 08:50PM

22
#1443 - Alexander / @vlasyuk_a

09/04/2018 at 07:03PM

22
#1444 - crittelmeyer / @crittelmeyer

09/05/2018 at 04:48PM

22
#1445 - Tdawg / @Tdawg37048815

09/05/2018 at 05:03PM

22
#1446 - Test / @TheVastComplex

09/05/2018 at 06:03PM

22
#1447 - Jeff / @sir_wiggles3

09/06/2018 at 11:50PM

22
#1448 - Tran Tu / @TrandTu

09/07/2018 at 12:04AM

22
#1449 - Yu-Jen Chang / @redeyes2015

09/07/2018 at 02:26AM

22
#1450 - Clmi / @c_decaf

09/08/2018 at 04:47PM

22
#1451 - Jerry L / @Mo_el_f

09/09/2018 at 02:29AM

22
#1452 - Ezekiel Vladimir / @EzekielVladimir

09/11/2018 at 09:13AM

22
#1453 - Nico Kreiling / @NicoKreiling

09/13/2018 at 10:00AM

22
#1454 - ㅤ / @ynyounuo

09/14/2018 at 09:11AM

22
#1455 - ​​ㅤ / @0x00411886

09/14/2018 at 09:54AM

22
#1456 - Wutimatic / @sarawoot_s

09/14/2018 at 05:42PM

22
#1457 - Avishay Matayev / @iTZAvishay

09/14/2018 at 07:16PM

22
#1458 - Sean / @SeanZhou1023

09/14/2018 at 09:14PM

22
#1459 - Rebecca V. / @rxbxccxv

09/15/2018 at 05:29AM

22
#1460 - Toby Runo / @toptab267

09/15/2018 at 10:35AM

22
#1461 - Dag Rune Ørebech / @DRebech

09/17/2018 at 11:34AM

22
#1462 - h3x3sworld / @h3x3sworld

09/17/2018 at 11:38AM

22
#1463 - ppngiap / @ppngiap

09/19/2018 at 07:41AM

22
#1464 - bignos / @bignos2

09/21/2018 at 03:24PM

22
#1465 - Not real / @Notreal70353016

09/21/2018 at 08:49PM

22
#1466 - masterpi / @masterpi16

09/22/2018 at 08:50PM

22
#1467 - Brendan B Amdocs / @AmdocsB

09/24/2018 at 12:05PM

22
#1468 - Lazar Dobrescu / @LazarDobrescu

09/25/2018 at 05:56PM

22
#1469 - Aaron Pettengill / @aaronpettengil1

09/25/2018 at 07:18PM

22
#1470 - Pico / @Elarique_Swift

09/26/2018 at 06:47AM