# Split kakoune windows with tmux

**URL:** <https://discuss.kakoune.com/t/split-kakoune-windows-with-tmux/325>\
**Category:** Help\
**Tags:** tmux\
**Created:** [February 10, 2019, 5:08pm UTC](https://discuss.kakoune.com/t/split-kakoune-windows-with-tmux/325 "2019-02-10T17:08:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![andreyorst](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/andreyorst/32/29_2.png) [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Post date:** [October 24, 2019, 10:59am UTC](https://discuss.kakoune.com/t/split-kakoune-windows-with-tmux/325/5 "2019-10-24T10:59:22Z")

</div>

```
define-command -docstring "vsplit [<commands>]: split tmux vertically" \
vsplit -params .. -command-completion %{
    tmux-terminal-horizontal kak -c %val{session} -e "%arg{@}"
}

define-command -docstring "split [<commands>]: split tmux horizontally" \
split -params .. -command-completion %{
    tmux-terminal-vertical kak -c %val{session} -e "%arg{@}"
}

define-command -docstring "tabnew [<commands>]: create new tmux window" \
tabnew -params .. -command-completion %{
    tmux-terminal-window kak -c %val{session} -e "%arg{@}"
}

```

Then you can map these commands.

---

_[View the full topic](https://discuss.kakoune.com/t/split-kakoune-windows-with-tmux/325)._
