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):
15
#211 - Asmund / @herrasbe

01/10/2013 at 08:54PM

15
#212 - Koko / @Koko72525913

01/17/2013 at 04:50PM

15
#213 - a24f0600 / @a24f0600

01/17/2013 at 05:17PM

15
#214 - Daniel Jonsson / @DanielJonss

01/17/2013 at 07:27PM

15
#215 - N / @nymph192

02/11/2013 at 10:38PM

15
#216 - powertomato / @powertomato

07/04/2013 at 09:28AM

15
#217 - Bradd Szonye / @bszonye

07/11/2013 at 11:36AM

15
#218 - Roland Schatz / @fl_Overmind

07/12/2013 at 05:12PM

15
#219 - Aaron Bieber / @aaronbieber

07/14/2013 at 11:24PM

15
#220 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

07/28/2013 at 07:38PM

15
#221 - cj / @cj01101

08/05/2013 at 03:37AM

15
#222 - Bart of Denver / @bartofdenver

08/12/2013 at 03:21PM

15
#223 - marmelad / @jordgubbssylt

08/24/2013 at 09:18PM

15
#224 - Martin Rehfeld / @klickmich

08/27/2013 at 09:41AM

15
#225 - Ed Zukowski / @dataoverflow

08/27/2013 at 07:54PM

15
#226 - David Pathakjee / @DavidPathakjee

08/29/2013 at 03:52AM

15
#227 - hiding / @I_haveno_name

10/01/2013 at 11:19PM

15
#228 - evilmoe ☮ / @evilmoe

10/15/2013 at 07:38PM

15
#229 - Casey Dwyer / @caseydwyer

10/24/2013 at 08:23PM

15
#230 - bunnies president / @bunnies4p

10/28/2013 at 01:24PM

15
#231 - Petr Broz / @ipetrbroz

12/19/2013 at 01:08AM

15
#232 - pikaren / @REALpikaren

12/23/2013 at 03:32PM

15
#233 - Alessandro Lisander / @wuiimu

01/06/2014 at 11:43PM

15
#234 - Alexander Borysov / @ab99c5e2

01/08/2014 at 03:19PM

15
#235 - Bambu / @bambumandinga

01/19/2014 at 02:53AM

15
#236 - Olivier Parent / @oliparcol

02/02/2014 at 11:37AM

15
#237 - kli / @klidev

02/04/2014 at 05:29PM

15
#238 - ren / @wxoc

03/03/2014 at 09:42AM

15
#239 - RB / @powerage88

03/20/2014 at 11:20PM

15
#240 - Brian Olpin / @bolpin

03/25/2014 at 05:39AM