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 5c393a580a5a300009888e2a

Delete to the end of the current line

Delete to the end of the current line, but keep the character under the cursor.

Start file
just to remove all text after; // this is a comment
End file
just to remove all text after;

View Diff

1c1
< just to remove all text after; // this is a comment
---
> just to remove all text after;

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 400 remaining solutions by signing in and submitting your own entry
#401 Mahendrata Harpi / @piharpi - Score: 95 - 02/10/20 @ 13:05
<Esc>c0<Esc>$d2<BS>uuuulllllllllllllllll$hlldwhhllllllluudwhhuuld4wwxxxxxxxxxxxxxxxxxxxx<Esc><Esc>:w<CR>:w<CR>:w<CR>L:w<CR>:q<CR>

0 comments


Created by: @xiongyuwu

401 active golfers, 831 entries

Leaderboard (lowest score wins):
6
#331 - Scott Taylor / @scott11X8

10/25/2019 at 12:00AM

6
#332 - fewfold / @fewfold

11/06/2019 at 03:14AM

6
#333 - cínicoycansino / @pgv958

11/22/2019 at 02:26PM

6
#334 - Richard Mörbitz / @Lodifice

12/05/2019 at 07:47PM

6
#335 - Noel Qiao / @NoelQiao

12/06/2019 at 11:35PM

6
#336 - Rishabh Chatterjee / @RishabhChatte14

12/23/2019 at 10:40PM

6
#337 - Delon / @delonleonard

12/28/2019 at 11:50AM

6
#338 - floyd / @floyd10086

03/18/2020 at 09:35AM

6
#339 - BnnGolfer / @BnnGolfer

03/24/2020 at 10:57PM

6
#340 - Seve / @Seve_py

04/11/2020 at 01:59PM

6
#341 - dule2607 / @dule26071

05/03/2020 at 08:47AM

6
#342 - Darren Brien / @darrenkbrien

05/12/2020 at 02:58PM

6
#343 - Jake Van Alstyne / @jake_va

05/14/2020 at 04:28PM

6
#344 - Mack Hutsell / @sellshuts

05/25/2020 at 06:59AM

6
#345 - Noxium / @NNNoxium

05/27/2020 at 04:12AM

6
#346 - drGsus / @drGsus

07/29/2020 at 07:44AM

6
#347 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 07:32PM

6
#348 - kafang plays vimgolf / @KafangV

12/17/2020 at 10:25AM

6
#349 - :wq / @write_quit_22

06/12/2021 at 06:43AM

6
#350 - James Marshall / @astrophd

10/13/2022 at 10:27PM

6
#351 - Chun Chanjun / @CChanjun

03/27/2023 at 10:53AM

6
#352 - asirago / @asiragoo

12/13/2023 at 11:37PM

6
#353 - ndaval / @ndaval

01/14/2024 at 03:54PM

6
#354 - kangsancheon / @kangsancheon

04/08/2024 at 03:31AM

6
#355 - Dal_Peng / @dalpang81

04/09/2024 at 01:57PM

6
#356 - 송민서 / @alstj2384

04/11/2024 at 08:50AM

6
#357 - 3.14 / @pi-ratio

04/12/2024 at 04:14AM

6
#358 - TANN1N / @TANN1N

04/12/2024 at 05:05AM

6
#359 - h_yxxun__.6 / @kimhyunseoo

04/12/2024 at 05:25PM

6
#360 - jiwon_kim / @Ji1WonKim

04/13/2024 at 11:53AM