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, 33648 entries

Leaderboard (lowest score wins):
22
#1531 - Nir Givon / @nir_givon

11/10/2018 at 03:31PM

22
#1532 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

11/11/2018 at 09:09PM

22
#1533 - CptBong / @cpt1bong

11/12/2018 at 02:26AM

22
#1534 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:09AM

22
#1535 - Fabio Branquinho / @branquif

11/12/2018 at 10:10AM

22
#1536 - Denis Shevchenko / @denchenko

11/12/2018 at 08:38PM

22
#1537 - Bracaval Elias / @BracavalE

11/13/2018 at 06:29PM

22
#1538 - Andrew Halberstadt / @halbersa

11/13/2018 at 07:39PM

22
#1539 - name / @name65894813

11/14/2018 at 01:58PM

22
#1540 - Sam Cristall / @sbcristall

11/14/2018 at 06:41PM

22
#1541 - greengreen / @greengr09073862

11/14/2018 at 07:31PM

22
#1542 - 陳欣俞 / @newfishg

11/15/2018 at 04:43AM

22
#1543 - BaffaloP 🐃🎨 / @bbaffalopp

11/15/2018 at 08:16AM

22
#1544 - 永森 / @nagk05

11/15/2018 at 12:43PM

22
#1545 - NiXiOM / @NiXi0M

11/15/2018 at 03:07PM

22
#1546 - Bruno Cunha / @bruncun

11/17/2018 at 05:23PM

22
#1547 - owen s vallis / @OwenVallis

11/18/2018 at 07:16AM

22
#1548 - Levi Self / @LeviRSelf

11/18/2018 at 08:19AM

22
#1549 - Joachim Nyborg / @jnyborg

11/18/2018 at 04:42PM

22
#1550 - Gary Wild / @amande_pistache

11/19/2018 at 05:36PM

22
#1551 - phoibos92@gmail.com / @phoibos92

11/20/2018 at 02:41PM

22
#1552 - succcubbus / @succcubbus

11/20/2018 at 10:03PM

22
#1553 - Tänka tanken / @Tevippen

11/22/2018 at 02:54AM

22
#1554 - samsuma000 / @samsuma000

11/22/2018 at 02:37PM

22
#1555 - william cedervall / @Master_smily

11/22/2018 at 05:21PM

22
#1556 - PJ Frazer / @pj_frazer

11/22/2018 at 10:06PM

22
#1557 - Commi / @hellocommi

11/23/2018 at 06:36PM

22
#1558 - Joeoe / @joeoe_

11/24/2018 at 02:35PM

22
#1559 - Jonathan Cabezas / @John_Harkan

11/25/2018 at 05:50PM

22
#1560 - Seòras / @Komos90

11/26/2018 at 09:54PM