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

633 active golfers, 1925 entries

Leaderboard (lowest score wins):
15
#301 - Arijus / @argshook

09/28/2018 at 11:16AM

15
#302 - Ivo Blöchliger / @aigledesalpes

08/07/2019 at 06:48PM

15
#303 - Ariel Miculas / @ArielMiculas

09/25/2019 at 04:05PM

15
#304 - Jason / @roosjason

06/14/2020 at 09:28AM

15
#305 - Vinay Sharma / @VinaySh63956554

08/14/2020 at 03:02PM

15
#306 - blabla zincou / @BZincou

04/11/2022 at 10:40PM

15
#307 - Levi Wheeler / @LeviWhe68726437

06/15/2022 at 04:08PM

15
#308 - 우정민 / @jeongmin2021

10/08/2022 at 05:01PM

16
#309 - Frank Perez / @frankperez87

12/21/2011 at 05:11PM

16
#310 - sebtyp / @sebtyp

12/21/2011 at 05:52PM

16
#311 - A / @tndrnt

12/21/2011 at 07:27PM

16
#312 - Michał Taszycki / @mehowte

12/21/2011 at 11:15PM

16
#313 - Joe Nerdan / @JoeNerdan

12/22/2011 at 12:02AM

16
#314 - Tara Bass / @tara_bass

12/22/2011 at 06:45AM

16
#315 - mynamewasgone / @mynamewasgone

12/22/2011 at 12:07PM

16
#316 - Daniel Lundin / @danielundin

12/24/2011 at 07:40PM

16
#317 - Vasil Sakarov / @vsakarov

12/27/2011 at 06:02PM

16
#318 - Glenn O Larsen / @mroddvar

12/29/2011 at 01:12PM

16
#319 - Philippe Mongeau / @phmongeau

12/30/2011 at 02:28AM

16
#320 - peter reisinger / @PeterReisinger

12/30/2011 at 05:40PM

16
#321 - Mike West / @mwest67

12/31/2011 at 10:52PM

16
#322 - Øystein Walle / @oysteinwalle

01/01/2012 at 08:21PM

16
#323 - Vladyslav Marsikov / @gagabogolo

01/04/2012 at 08:00PM

16
#324 - Christopher Brew / @Seph1rothVII

01/10/2012 at 12:49AM

16
#325 - Petrik de Heus / @four54

01/14/2012 at 09:45PM

16
#326 - zDlZPSx zDlZPSx / @zDlZPSx

01/26/2012 at 11:49PM

16
#327 - themolok / @themolok

01/30/2012 at 10:49PM

16
#328 - pangloss / @tpattern

01/31/2012 at 08:30AM

16
#329 - artanis / @artanislives

01/31/2012 at 01:30PM

16
#330 - Nicolas Terray / @nterray

02/02/2012 at 10:50PM