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 4ef209ef78702b0001000019

Make it more readable

Insert blank lines to make it more organized and readable

Start file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind-key C-q last-window
# Remove default binding since we’re replacing
unbind %
bind | split-window -h
bind - split-window -v
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw -g automatic-rename

End file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind-key C-q last-window


# Remove default binding since we’re replacing
unbind %
bind | split-window -h
bind - split-window -v


# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'


# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'


# Set window notifications
setw -g monitor-activity on
set -g visual-activity on


# Automatically set window title
setw -g automatic-rename

View Diff

3a4,5
> 
> 
7a10,11
> 
> 
11a16,17
> 
> 
14a21,22
> 
> 
17a26,27
> 
> 

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 612 remaining solutions by signing in and submitting your own entry
#613 Brandon Height / @Lask0x - Score: 93 - 08/08/17 @ 15:33
:2,$s/^#/\r\r#/<CR><Esc>u<Up><Up><Up><Up><Esc>:2,s$/^#/\r\r#<CR>y<Esc>u<Esc>:<Up><C-A><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>$s<Esc><Esc><Esc>ssss<Esc>uus<Esc>u<Esc>:2,$s,<BS>/^#/\r\r#<CR>ZZ

0 comments


Created by: @alimoeeny

613 active golfers, 1860 entries

Leaderboard (lowest score wins):
16
#361 - Jonathan Potter / @nTypeRed

11/12/2013 at 06:47PM

16
#362 - Va bien te faire fou / @mplayer_vimgolf

11/16/2013 at 01:58AM

16
#363 - Karun Ramakrishnan / @the_karun

12/03/2013 at 12:43AM

16
#364 - Larry Boltovskoi / @larrybolt

12/09/2013 at 09:44AM

16
#365 - Sam Burk / @smwbk

12/21/2013 at 02:43AM

16
#366 - Salleyron Julien / @juguul

12/30/2013 at 11:52PM

16
#367 - Clinton シ / @iblamefish

01/05/2014 at 07:10PM

16
#368 - Qhuatre / @Qhuatre

01/10/2014 at 04:21PM

16
#369 - Fat troll / @fat_troll

03/29/2014 at 08:24AM

16
#370 - Endir / @Endir2

04/17/2014 at 05:16PM

16
#371 - Jeff Parent / @jeffparent

05/16/2014 at 03:56PM

16
#372 - Araka Bar / @ArakaBar

12/28/2014 at 11:56AM

16
#373 - Jake Eskel / @JakeEskel

01/08/2015 at 01:23AM

16
#374 - d1uckym d1uckym / @d1uckym

02/16/2015 at 09:58PM

16
#375 - TheProgrammer971 / @tp971

03/14/2015 at 03:00PM

16
#376 - Paul / @MapCalculator

06/24/2015 at 03:31AM

16
#377 - No Holiness / @NoHoliness

10/03/2015 at 10:59AM

16
#378 - Yahyalexandre33 / @yahyalexandre33

03/14/2016 at 07:03PM

16
#379 - Bogumił Kamiński / @BogumilKaminski

05/01/2016 at 09:38PM

16
#380 - Peter Brynza / @v3_1

08/19/2016 at 09:19PM

16
#381 - И К / @igorjan94

09/15/2016 at 08:25AM

16
#382 - Etienne Florent / @EtienneFlorent

11/28/2016 at 08:56AM

16
#383 - Liam S Ismail / @AC01Y

04/04/2017 at 09:33PM

16
#384 - Geoff / @RealGeoffErwin

12/18/2017 at 09:43PM

16
#385 - Paul Draghicescu / @pdragy

03/22/2018 at 07:30AM

16
#386 - aaa1195 / @aaa11954

08/03/2018 at 06:52PM

16
#387 - Luis Rodriguez / @luisthecoder

11/16/2018 at 02:11AM

16
#388 - Michaël Lévesque-Dion / @mlevesquedion

04/26/2019 at 12:43AM

16
#389 - Phoon / @justflashhim

05/11/2019 at 03:10AM

17
#390 - celery rho gamma / @rentalcustard

12/21/2011 at 05:01PM