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

6996 active golfers, 31709 entries

Leaderboard (lowest score wins):
22
#1831 - Giulio Bottari / @giuliobottari

07/04/2019 at 06:31PM

22
#1832 - as-night / @asnight2

07/04/2019 at 09:39PM

22
#1833 - ixf / @ixfdv

07/05/2019 at 06:01PM

22
#1834 - yovimaster / @yovimaster

07/07/2019 at 08:32AM

22
#1835 - Hengzhao Hong / @hhz20009

07/10/2019 at 07:51AM

22
#1836 - Mens Jender / @Todesshnizzle

07/10/2019 at 11:53AM

22
#1837 - Peter Demin / @peterdemin

07/10/2019 at 05:55PM

22
#1838 - aurelian ardeleanu / @inquarto

07/10/2019 at 07:29PM

22
#1839 - mag1cal.unic0rn / @unic0rn_mag1cal

07/11/2019 at 06:17AM

22
#1840 - Denis / @4NNTGudvin

07/11/2019 at 07:35AM

22
#1841 - Igor Yalovoy / @ylv_io

07/11/2019 at 09:29PM

22
#1842 - Gustavo Almeida / @gustaalmeidaws

07/12/2019 at 09:29PM

22
#1843 - TestaPerro / @TestaPerro

07/12/2019 at 10:33PM

22
#1844 - Malcolm Sharpe / @blueblimpms

07/15/2019 at 09:33AM

22
#1845 - Neil Struthers / @struthersneil

07/15/2019 at 12:53PM

22
#1846 - Adam Katz / @AdamKat01277576

07/16/2019 at 01:01PM

22
#1847 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 06:43AM

22
#1848 - taka / @takaoutputblog

07/18/2019 at 04:41PM

22
#1849 - James Raubenheimer / @jamzrob

07/18/2019 at 08:58PM

22
#1850 - Jure Zbontar / @jure_zbontar

07/20/2019 at 02:24AM

22
#1851 - Hxhxhrra / @hxhxhrra

07/20/2019 at 06:59PM

22
#1852 - Zach? / @zippity_zoppity

07/22/2019 at 07:15PM

22
#1853 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 07:43PM

22
#1854 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 07:44PM

22
#1855 - Diego Navarro / @die_4001

07/23/2019 at 08:31PM

22
#1856 - Tri Le / @Tri_Le

07/26/2019 at 07:00PM

22
#1857 - kokiteru / @hommakoki

07/26/2019 at 11:52PM

22
#1858 - Dominik Przywara / @PrzywaraDominik

07/28/2019 at 12:09PM

22
#1859 - Matt Vaughn / @mattttvaughn

07/29/2019 at 01:18AM

22
#1860 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:21AM