---
title: "tmux splitting panes"
description: "https://youtu.be/kzgyiHap1nQ"
date: 2021-07-17
published: true
tags:
  - cli
  - linux
  - tmux
template: blog-post
---


[https://youtu.be/kzgyiHap1nQ](https://youtu.be/kzgyiHap1nQ){.youtube-embed}

splitting panes is a core feature of tmux.  It allows us to split the terminal
vertically or horizontally into new panes.

``` bash
bind -n M-s split-window -c '#{pane_current_path}'
bind -n M-v split-window -h -c '#{pane_current_path}'
bind -n M-X kill-pane
```

> 🗒️ note that  '#{pane_current_path}'will keep the split in the same directory
> as it's parent, without this it will default to your home directory.

<a href="/tmux-nav-2021/" class="wikilink" data-title="How I navigate tmux in 2021" data-description="change_speed = (speed) =&gt; [...document.querySelectorAll(&#39;video&#39;)].map(v =&gt; v.playbackRate=v.playbackRate+speed)" data-date="2021-05-11">How I navigate tmux in 2021</a>

> for more information on how I navigate tmux, check out this full post
