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

5974 active golfers, 26804 entries

Leaderboard (lowest score wins):
22
#751 - John Turner / @turnerOnTheGrid

12/24/2016 at 02:47AM

22
#752 - Krishnakumar / @Krishna84417968

12/28/2016 at 07:11AM

22
#753 - Jake Utley / @jakeutley

12/28/2016 at 09:52PM

22
#754 - Jelmer Snoeck / @jelmersnoeck

12/29/2016 at 06:57PM

22
#755 - golfing cobra / @golfingkobra

12/30/2016 at 10:01AM

22
#756 - Saurav Mitra / @SauravMitra11

12/31/2016 at 09:08AM

22
#757 - Eduardo Hashimoto / @eduhashi

01/02/2017 at 12:43AM

22
#758 - akan / @akan17802661

01/02/2017 at 08:10AM

22
#759 - tu bai / @baidatutu

01/02/2017 at 11:14AM

22
#760 - Pretty big deal / @calvinhp

01/04/2017 at 01:27AM

22
#761 - claytron / @claytron

01/04/2017 at 01:28AM

22
#762 - Valacar / @valacar

01/04/2017 at 02:38AM

22
#763 - Patrick Sanan / @patricksanan

01/06/2017 at 02:24PM

22
#764 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 07:31PM

22
#765 - William Surles / @williamsurles

01/12/2017 at 09:49PM

22
#766 - Adrian Goldwaser / @AdrianGoldwaser

01/17/2017 at 09:48AM

22
#767 - racffee / @RacffedeRacffee

01/17/2017 at 04:41PM

22
#768 - YaLTeR / @YaLTeRz

01/18/2017 at 08:58AM

22
#769 - Zhihong Liu / @pieapple03

01/18/2017 at 01:56PM

22
#770 - terhorst / @terhorst

01/20/2017 at 12:32AM

22
#771 - sijinyuan / @sijinyuan

01/20/2017 at 05:10AM

22
#772 - Ítalo Vieira / @italogvieira

01/20/2017 at 11:29PM

22
#773 - Wei Wu / @WeiWu1

01/22/2017 at 06:22AM

22
#774 - Damien Szczyt / @dszczyt

01/23/2017 at 04:10PM

22
#775 - Young Seok Tony Kim / @tonyapplekim

01/24/2017 at 03:14PM

22
#776 - leslie snipes / @imjakerl

01/25/2017 at 04:45AM

22
#777 - newself / @newself365

01/25/2017 at 06:52AM

22
#778 - Birger / @Birger_Ni

01/25/2017 at 03:21PM

22
#779 - Vojtech Cvrcek / @CvrcekCvrcekv

01/26/2017 at 04:38PM

22
#780 - Vimgolf / @vimgolf987

01/27/2017 at 10:53PM