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

635 active golfers, 1928 entries

Leaderboard (lowest score wins):
18
#511 - Павел Игоревич / @VizierST

02/03/2014 at 09:39PM

18
#512 - John Gray Cole / @johngraycole

04/24/2014 at 01:17AM

18
#513 - mathac / @mathacgolf

05/05/2014 at 07:45PM

18
#514 - Peeby Thirtyone / @peeby31

05/11/2014 at 12:11PM

18
#515 - 土ヤ / @ttsuchiya

06/23/2014 at 10:21AM

18
#516 - Kirill / @wedens_

07/14/2014 at 05:03AM

18
#517 - r. / @rmarvie

12/19/2014 at 09:47PM

18
#518 - Zuzana Dostalova / @Jocinka

03/15/2015 at 09:34PM

18
#519 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

04/03/2015 at 08:48PM

18
#520 - Mauro Persano / @fzort

06/05/2015 at 10:23PM

18
#521 - Endre Galaczi / @galacziendre

08/11/2015 at 04:54PM

18
#522 - coltruindie / @e10nevwa

10/12/2015 at 01:01PM

18
#523 - ハチポケッツ / @8pockets

11/27/2015 at 04:51AM

18
#524 - TETSU / @kaoru6strings

04/18/2016 at 03:01AM

18
#525 - Daniel Bellenger / @DanielBellenger

09/30/2016 at 08:02PM

18
#526 - Remus Dalrymple / @bornintheflames

05/07/2017 at 11:07PM

18
#527 - phucvin / @phucvin

02/14/2018 at 05:00PM

18
#528 - Brent Woo / @BrentPWoo

10/05/2018 at 08:46PM

18
#529 - Fabio Branquinho / @branquif

11/12/2018 at 08:44PM

18
#530 - Shunichi Kanade / @shunkana

12/02/2018 at 10:06AM

18
#531 - Aioriya / @AioriyaDonk

09/26/2019 at 03:20AM

18
#532 - RockerZZY / @rocker_zzy

06/11/2020 at 09:23AM

19
#533 - Sebastian Korten / @FlashKorten

12/29/2011 at 02:42PM

19
#534 - Martin Klepsch / @mklappstuhl

01/30/2012 at 01:35PM

19
#535 - Cody Pearson / @DyslexicExNinja

02/04/2012 at 01:36AM

19
#536 - Jyun-Fan Tsai / @fakecolor

02/04/2012 at 06:49AM

19
#537 - Jay Stotz / @jstotz

02/04/2012 at 02:58PM

19
#538 - Alan Oliver / @alol

02/14/2012 at 05:42PM

19
#539 - skellam / @skellam

02/20/2012 at 07:35PM

19
#540 - Bernhard Urban-Forster / @lewurm

02/21/2012 at 05:56PM