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

Leaderboard (lowest score wins):
22
#901 - Wang Wu / @rubepeg

05/11/2017 at 12:31PM

22
#902 - korzenmichal / @korzenmichal

05/11/2017 at 06:46PM

22
#903 - cook / @mattcook08

05/12/2017 at 05:43AM

22
#904 - 丰璐琰 / @flydzt

05/12/2017 at 08:26AM

22
#905 - Russell Ball / @rtball2

05/12/2017 at 06:13PM

22
#906 - Aki Morooka / @Aki12117528

05/13/2017 at 01:39PM

22
#907 - Richard Ivan / @Richard_Ivan

05/13/2017 at 02:49PM

22
#908 - ЯRicardo / @TresErresCo

05/14/2017 at 06:38PM

22
#909 - Pablo / @suspekt007

05/15/2017 at 05:15AM

22
#910 - Krzysztof Kotlarek / @krzkot

05/15/2017 at 10:34AM

22
#911 - Erim Secla / @Alcesmire

05/16/2017 at 03:35AM

22
#912 - wtfwtf / @wtfwtf17

05/16/2017 at 11:24AM

22
#913 - James Houghton / @jamesthoughton

05/17/2017 at 12:31AM

22
#914 - Dielos / @Dielos

05/17/2017 at 11:50AM

22
#915 - Emmanuel Denloye-Ito / @EmmanuelDenloye

05/18/2017 at 07:17PM

22
#916 - Nelson Zhang / @Fasoters

05/19/2017 at 05:17PM

22
#917 - Rodrigo Dorantes G. / @ruydg

05/20/2017 at 06:32PM

22
#918 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/21/2017 at 01:16PM

22
#919 - Ming Dai / @MingDai2

05/21/2017 at 04:17PM

22
#920 - Yossi Zahn / @yossi_zahn

05/21/2017 at 07:00PM

22
#921 - Benjamin Hiltpolt / @vbenni

05/23/2017 at 05:52PM

22
#922 - Jason Villanueva / @Json_V1

05/23/2017 at 06:27PM

22
#923 - ybw / @yossibenwolf

05/24/2017 at 06:42AM

22
#924 - Jan Fiser / @dmmn082

05/24/2017 at 06:10PM

22
#925 - Tomas Sikula / @tomsmicroblog

05/24/2017 at 09:51PM

22
#926 - Simon / @simonpaitu

05/28/2017 at 02:21PM

22
#927 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 05:09AM

22
#928 - Victor Ramirez / @virako

05/31/2017 at 09:11PM

22
#929 - R.G. / @Zhiliyo

06/02/2017 at 10:39PM

22
#930 - Сергей Широковских / @hellomoto1771

06/03/2017 at 06:17AM