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):
18
#451 - Neal Lewis / @neal_lewis

01/11/2012 at 03:24PM

18
#452 - D. Marano / @pleiadeez

01/13/2012 at 01:46AM

18
#453 - Logan Glasson / @logan12358

01/28/2012 at 08:16AM

18
#454 - Rob C. Grant / @rob_c_grant

01/28/2012 at 04:12PM

18
#455 - Titan Tang / @titantang

01/31/2012 at 04:48AM

18
#456 - MONOLITH / @Compulith

01/31/2012 at 08:32AM

18
#457 - Dan Hart / @DHJHart

02/07/2012 at 06:16PM

18
#458 - dzderic / @dzderic

02/08/2012 at 09:07AM

18
#459 - Peter Anselmo / @peter_anselmo

03/02/2012 at 05:06PM

18
#460 - Kubek2k / @kubek2k

03/08/2012 at 08:37AM

18
#461 - Chris Thorn / @thorncp

05/01/2012 at 09:58PM

18
#462 - Carlos Hernando / @chernando

06/13/2012 at 06:49PM

18
#463 - Tyler Breisacher / @tbreisacher

08/26/2012 at 06:57PM

18
#464 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 10:49AM

18
#465 - JustGage / @JustGage

09/03/2012 at 03:45PM

18
#466 - curist / @curist

07/09/2013 at 02:45AM

18
#467 - Dave Aitken / @actionshrimp

08/27/2013 at 06:55PM

18
#468 - Bjorn / @bjorn_248

09/12/2013 at 02:18PM

18
#469 - Fernando Axel Ellis / @Axel_Ellis

09/17/2013 at 03:20PM

18
#470 - A. N. / @arez42

10/24/2013 at 06:44AM

18
#471 - mwcz / @mwcz

11/01/2013 at 06:27PM

18
#472 - Zach Kemp / @zvksf

12/13/2013 at 08:16AM

18
#473 - raymangum / @raymangum

12/26/2013 at 10:29PM

18
#474 - Caleb Perkins / @tollbooth

01/29/2014 at 07:57AM

18
#475 - Павел Игоревич / @VizierST

02/03/2014 at 09:39PM

18
#476 - John Gray Cole / @johngraycole

04/24/2014 at 01:17AM

18
#477 - mathac / @mathacgolf

05/05/2014 at 07:45PM

18
#478 - Peeby Thirtyone / @peeby31

05/11/2014 at 12:11PM

18
#479 - 土ヤ / @ttsuchiya

06/23/2014 at 10:21AM

18
#480 - Kirill / @wedens_

07/14/2014 at 05:03AM