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):
15
#271 - Daniel Pham / @dany_pham

10/15/2015 at 05:24PM

15
#272 - Árpád Krejczinger / @krarpi

11/09/2015 at 05:26PM

15
#273 - Ian Trophy / @prfrgg

02/01/2016 at 12:27PM

15
#274 - John Finn / @johnvfinn7

02/19/2016 at 07:20AM

15
#275 - Cristian Lupașcu / @clupasq

02/19/2016 at 04:07PM

15
#276 - citaret / @citaret

08/28/2016 at 03:28AM

15
#277 - TweetDreams / @TweetMusicians

10/15/2016 at 06:12PM

15
#278 - jake worth / @jwworth

11/16/2016 at 01:37AM

15
#279 - Jon Louie / @jjisnow

12/06/2016 at 02:21AM

15
#280 - tPenguinLTG / @tpenguinltg

01/24/2017 at 02:39AM

15
#281 - Yann / @yannstad

02/26/2017 at 08:05AM

15
#282 - Stop and think / @ms_uncountable

07/12/2017 at 07:02AM

15
#283 - Brian Hall / @_bruab_

10/06/2017 at 04:20PM

15
#284 - BareTull / @BareTull3

12/05/2017 at 03:30PM

15
#285 - c0llision / @sh3llcode

04/17/2018 at 09:07PM

15
#286 - Luke Lee / @luke0201

05/06/2018 at 09:16AM

15
#287 - Jonathan Camilleri / @Too_Many_Taken

06/02/2018 at 12:40PM

15
#288 - fucus / @fishlovebanana

07/29/2018 at 01:37AM

15
#289 - Martynas Bardauskas / @mbardauskas

09/28/2018 at 11:16AM

15
#290 - Arijus / @argshook

09/28/2018 at 11:16AM

15
#291 - Ivo Blöchliger / @aigledesalpes

08/07/2019 at 06:48PM

15
#292 - Ariel Miculas / @ArielMiculas

09/25/2019 at 04:05PM

15
#293 - Jason / @roosjason

06/14/2020 at 09:28AM

15
#294 - Vinay Sharma / @VinaySh63956554

08/14/2020 at 03:02PM

16
#295 - Frank Perez / @frankperez87

12/21/2011 at 05:11PM

16
#296 - sebtyp / @sebtyp

12/21/2011 at 05:52PM

16
#297 - A / @tndrnt

12/21/2011 at 07:27PM

16
#298 - Michał Taszycki / @mehowte

12/21/2011 at 11:15PM

16
#299 - Joe Nerdan / @JoeNerdan

12/22/2011 at 12:02AM

16
#300 - Tara Bass / @tara_bass

12/22/2011 at 06:45AM