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

588 active golfers, 1761 entries

Leaderboard (lowest score wins):
16
#361 - Peter Brynza / @v3_1

08/19/2016 at 09:19PM

16
#362 - И К / @igorjan94

09/15/2016 at 08:25AM

16
#363 - Etienne Florent / @EtienneFlorent

11/28/2016 at 08:56AM

16
#364 - Liam S Ismail / @AC01Y

04/04/2017 at 09:33PM

16
#365 - Geoff / @RealGeoffErwin

12/18/2017 at 09:43PM

16
#366 - Paul Draghicescu / @pdragy

03/22/2018 at 07:30AM

16
#367 - aaa1195 / @aaa11954

08/03/2018 at 06:52PM

16
#368 - Luis Rodriguez / @luisthecoder

11/16/2018 at 02:11AM

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

04/26/2019 at 12:43AM

16
#370 - Phoon / @justflashhim

05/11/2019 at 03:10AM

17
#371 - celery rho gamma / @rentalcustard

12/21/2011 at 05:01PM

17
#372 - Beau Dacious / @nocash

12/21/2011 at 05:52PM

17
#373 - Kent Sibilev / @datanoise

12/21/2011 at 06:17PM

17
#374 - Sergi Sorribas / @lerovitch

12/22/2011 at 12:34PM

17
#375 - 0x5042 / @0x5042

12/24/2011 at 07:40AM

17
#376 - Thijs Brobbel / @tiesmaster

12/28/2011 at 04:04PM

17
#377 - Dj Vimgolf / @dj_vimgolf

12/31/2011 at 12:49AM

17
#378 - Raj Sahae / @rajsahae

01/02/2012 at 10:31PM

17
#379 - Dave E / @DaveRElliott

01/04/2012 at 11:29PM

17
#380 - Burkhard Zimmermann / @BurkZimm

01/06/2012 at 01:28PM

17
#381 - Matt Woelk / @MattWoelk

01/12/2012 at 05:52AM

17
#382 - Forrest L Norvell / @othiym23

01/27/2012 at 11:43AM

17
#383 - Ethan / @ethanmiller

01/31/2012 at 12:09AM

17
#384 - SeanPlusPlus / @SeanPlusPlus

01/31/2012 at 06:55AM

17
#385 - Chris Geihsler / @seejee

01/31/2012 at 10:58PM

17
#386 - はなたん / @hntn

02/04/2012 at 01:22AM

17
#387 - John Ford / @GhettoCode

02/04/2012 at 03:01AM

17
#388 - Kevin Hamer / @khamer

02/14/2012 at 12:47AM

17
#389 - Dan Huang / @yuzeh

02/16/2012 at 07:22PM

17
#390 - Scott Schlesier / @sschlesier

02/22/2012 at 08:00AM