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

6800 active golfers, 30755 entries

Leaderboard (lowest score wins):
22
#1861 - Markus / @ARealAnnoyance

07/29/2019 at 11:15AM

22
#1862 - Hayden Wang / @HaydenWang2

07/30/2019 at 08:30AM

22
#1863 - John / @JohnJDoe2

07/31/2019 at 10:51AM

22
#1864 - Andreas Hübner / @hyperbolicus140

08/03/2019 at 12:05PM

22
#1865 - XiaoXiaoLui / @XiaoXiaoLui1

08/03/2019 at 07:01PM

22
#1866 - George Sofianos / @GeoSofianos

08/04/2019 at 09:00PM

22
#1867 - りんご / @ringo9971

08/05/2019 at 07:46AM

22
#1868 - majestic sloth / @SamLlama

08/05/2019 at 07:53AM

22
#1869 - 张忠荣 / @ZZRcooperation

08/06/2019 at 12:59PM

22
#1870 - bsjd / @bsjd

08/06/2019 at 02:24PM

22
#1871 - sooqua / @sooqua

08/07/2019 at 01:11PM

22
#1872 - Noisome Possum / @NoisomePossum

08/08/2019 at 06:40AM

22
#1873 - matthew brett / @matthewbrett

08/08/2019 at 09:17PM

22
#1874 - Thomas Tøkje / @tokjenator

08/09/2019 at 04:04PM

22
#1875 - Jake Treacher / @jaketreacher

08/13/2019 at 11:05AM

22
#1876 - Homer Simpson / @HJSimpson

08/13/2019 at 01:10PM

22
#1877 - nlfrocks / @nlfrocks

08/16/2019 at 06:04AM

22
#1878 - Adam Hartz / @awareofnow

08/18/2019 at 12:14AM

22
#1879 - Maxime Turquetil / @maturquetil

08/21/2019 at 12:47PM

22
#1880 - Marco Mannucci / @markomannux

08/21/2019 at 02:13PM

22
#1881 - kevinski / @kevinsk30746831

08/22/2019 at 02:42PM

22
#1882 - Simon Andermatt / @SimonAndermatt

08/23/2019 at 07:55PM

22
#1883 - David Johnston / @nuts4nuts4nuts

08/24/2019 at 07:07AM

22
#1884 - spock900 / @spock9002

08/24/2019 at 10:07AM

22
#1885 - Preetham Maiya / @PreethamMaiya

08/25/2019 at 07:43AM

22
#1886 - blub / @agorilladriving

08/27/2019 at 02:20AM

22
#1887 - David Ding / @gnidding

08/28/2019 at 02:21AM

22
#1888 - freehaha / @freehaha

08/28/2019 at 04:45AM

22
#1889 - sundeep routhu / @sundeep12005

08/29/2019 at 03:06PM

22
#1890 - Andrew Blokzyl / @linuxKd

08/29/2019 at 05:26PM