Hello again,
I am stuck with this:
Default mapping to s
calls :shell command and that's fine.
nnoremap s :shell<cr>
I'd like to make it a bit smarter so that if running from under tmux, it starts shell in a new pane below. The approach looks reasonable:
nnoremap s :if $TMUX != ''
\| !tmux splitw -v -p20<cr>
\|:else
\| :shell<cr>
\|:endif
and indeed it creates a new pane with shell when I am under tmux.
However otherwise it shows no shell anymore. It shows nothing at all.
What could be a reason and how to make it work usual, non-tmux way when there's no tmux behind? I guess i am somehow wrong with syntax, but no clue.