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

652 active golfers, 2009 entries

Leaderboard (lowest score wins):
15
#271 - Olivier Parent / @oliparcol

02/02/2014 at 11:37AM

15
#272 - kli / @klidev

02/04/2014 at 05:29PM

15
#273 - ren / @wxoc

03/03/2014 at 09:42AM

15
#274 - RB / @powerage88

03/20/2014 at 11:20PM

15
#275 - Brian Olpin / @bolpin

03/25/2014 at 05:39AM

15
#276 - Patrick Oscity / @der_padde

03/27/2014 at 10:52AM

15
#277 - Sntano Euhsk / @SEuhsk

06/02/2014 at 06:11PM

15
#278 - Rob Glew / @RealGlew

06/09/2014 at 04:30PM

15
#279 - Ravi S Sinha / @ambidextrousTx

06/18/2014 at 05:19AM

15
#280 - John Meisner / @jmeisned

06/25/2014 at 08:43PM

15
#281 - RiccardoSven Risuleo / @riccardosven

07/22/2014 at 07:42PM

15
#282 - Michi Loro / @michiloro

07/24/2014 at 10:20AM

15
#283 - Mundi / @MarcusMundi

09/14/2014 at 08:38PM

15
#284 - R / @7vies

10/21/2014 at 12:51PM

15
#285 - eBrnd / @eBrnd

11/02/2014 at 08:05PM

15
#286 - Matt / @mcr05

01/02/2015 at 11:12AM

15
#287 - William Ott / @oddalot

04/15/2015 at 04:27PM

15
#288 - Rolf / @liffon

04/28/2015 at 08:47PM

15
#289 - Ben Vandervalk / @benvvalk

09/27/2015 at 05:36AM

15
#290 - Daniel Pham / @dany_pham

10/15/2015 at 05:24PM

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

11/09/2015 at 05:26PM

15
#292 - Ian Trophy / @prfrgg

02/01/2016 at 12:27PM

15
#293 - John Finn / @johnvfinn7

02/19/2016 at 07:20AM

15
#294 - Cristian Lupașcu / @clupasq

02/19/2016 at 04:07PM

15
#295 - citaret / @citaret

08/28/2016 at 03:28AM

15
#296 - TweetDreams / @TweetMusicians

10/15/2016 at 06:12PM

15
#297 - Jake Worth / @jwworth

11/16/2016 at 01:37AM

15
#298 - Jon Louie / @jjisnow

12/06/2016 at 02:21AM

15
#299 - tPenguinLTG / @tpenguinltg

01/24/2017 at 02:39AM

15
#300 - Yann / @yannstad

02/26/2017 at 08:05AM