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

622 active golfers, 1891 entries

Leaderboard (lowest score wins):
17
#451 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 02:24PM

17
#452 - SilentFl / @Silent_Fl

01/27/2015 at 10:37AM

17
#453 - vgmct / @vgmct

04/26/2015 at 04:54AM

17
#454 - Cosmin Banu / @cosminb82

05/06/2015 at 11:13PM

17
#455 - Clément / @clement_frndz

06/18/2015 at 10:29PM

17
#456 - Aaron Fortune / @aaron_fortune

09/20/2015 at 04:33AM

17
#457 - Rémi / @daaaaft

11/18/2015 at 03:28PM

17
#458 - Laurent Atlan / @laurentatlan1

12/29/2015 at 11:25PM

17
#459 - Antoine Brunet / @AntoineBrunet

01/13/2016 at 07:05PM

17
#460 - Chenut Ludovic / @7Brwa7

03/31/2016 at 09:44AM

17
#461 - Ben Hill / @KaizenSoze70

05/09/2016 at 06:27PM

17
#462 - Leix b / @leix_b

07/23/2016 at 06:06PM

17
#463 - André Peric Tavares / @AndrePeric

07/31/2016 at 02:28PM

17
#464 - Will / @obiwan__k3n00bi

08/17/2016 at 04:27AM

17
#465 - PeterGC / @petkusGC

08/25/2016 at 10:11PM

17
#466 - BlackCap / @BlackCapCoder

11/30/2016 at 12:58PM

17
#467 - Daniel / @Daniel00288663

03/27/2017 at 11:46AM

17
#468 - Saul Hardman / @saulhardman

08/24/2017 at 07:56AM

17
#469 - Romain D. / @r_dulery

02/06/2018 at 07:35PM

17
#470 - Evgeny`s Kindle / @EvgenyKindle

05/03/2018 at 07:13AM

17
#471 - wrglprmft1 / @wrglprmft1

01/26/2019 at 03:11PM

17
#472 - Jose Elera / @jelera

01/29/2020 at 01:41AM

18
#473 - Vivus Ignis / @vivus_ignis

12/22/2011 at 04:17PM

18
#474 -  Ikhsan Maulana / @ixandidu

01/07/2012 at 05:00AM

18
#475 - Kiss György / @Walkman_

01/08/2012 at 04:39AM

18
#476 - Aerrie Seo / @pblinne

01/10/2012 at 02:26PM

18
#477 - Neal Lewis / @neal_lewis

01/11/2012 at 03:24PM

18
#478 - D. Marano / @pleiadeez

01/13/2012 at 01:46AM

18
#479 - Logan Glasson / @logan12358

01/28/2012 at 08:16AM

18
#480 - Rob C. Grant / @rob_c_grant

01/28/2012 at 04:12PM