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

590 active golfers, 1765 entries

Leaderboard (lowest score wins):
16
#331 - kana / @kana1

08/27/2013 at 09:52AM

16
#332 - David Escribano / @DavidEGx

08/27/2013 at 08:01PM

16
#333 - Bunwut Tson / @NbTson

08/31/2013 at 07:59PM

16
#334 - yaon / @yaon4

09/12/2013 at 11:04AM

16
#335 - Andrew Crites / @ExplosionPills

09/12/2013 at 02:54PM

16
#336 - brett / @brettyukich

09/19/2013 at 10:20PM

16
#337 - Oliver Christ / @0liverChrist

09/20/2013 at 09:44PM

16
#338 - nona urbiz / @nospampleasemam

09/28/2013 at 07:24AM

16
#339 - Greg Spurrier / @gregspurrier

10/10/2013 at 02:06AM

16
#340 - newton / @newtonsmartt

10/16/2013 at 12:07AM

16
#341 - foo / @foo88832727

10/18/2013 at 08:24PM

16
#342 - Fnord Everywhere / @FnordE

10/31/2013 at 09:11AM

16
#343 - Jonathan Potter / @nTypeRed

11/12/2013 at 06:47PM

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

11/16/2013 at 01:58AM

16
#345 - Karun Ramakrishnan / @the_karun

12/03/2013 at 12:43AM

16
#346 - Larry Boltovskoi / @larrybolt

12/09/2013 at 09:44AM

16
#347 - Sam Burk / @smwbk

12/21/2013 at 02:43AM

16
#348 - Salleyron Julien / @juguul

12/30/2013 at 11:52PM

16
#349 - Clinton シ / @iblamefish

01/05/2014 at 07:10PM

16
#350 - Qhuatre / @Qhuatre

01/10/2014 at 04:21PM

16
#351 - Fat troll / @fat_troll

03/29/2014 at 08:24AM

16
#352 - Endir / @Endir2

04/17/2014 at 05:16PM

16
#353 - Jeff Parent / @jeffparent

05/16/2014 at 03:56PM

16
#354 - Araka Bar / @ArakaBar

12/28/2014 at 11:56AM

16
#355 - Jake Eskel / @JakeEskel

01/08/2015 at 01:23AM

16
#356 - d1uckym d1uckym / @d1uckym

02/16/2015 at 09:58PM

16
#357 - TheProgrammer971 / @tp971

03/14/2015 at 03:00PM

16
#358 - Paul / @MapCalculator

06/24/2015 at 03:31AM

16
#359 - No Holiness / @NoHoliness

10/03/2015 at 10:59AM

16
#360 - Yahyalexandre33 / @yahyalexandre33

03/14/2016 at 07:03PM