Horizontal split does not work

  1. anonymous

    Hi,

    I have the problem that I am not able to open some file in a new split window. Vertical split (<C-v>) does work, but horizontal does not (<C-CR>, <C-s>). Any thoughts what might cause this? The only time splits work is when I open new files while in the current buffer are unsaved changes. I already tried to set a new mapping, but that did nothing either: let g:CommandTAcceptSelectionSplitMap='<S-CR>'

    Cheers, Arvid

  2. Greg Hurrell

    Are you using Vim in the terminal? It's possible the terminal itself is intercepting the <C-s> key sequence and not passing it through to Vim. <C-s> by default suspends the terminal and <C-q> resumes it (see the Wikipedia article on flow control for more details).

    Likewise, <C-CR> is never passed down to programs running inside the terminal; they simply don't see it.

  3. anonymous

    Thank you. That was the missing hint.

    $ stty stop undef && stty start undef

    This did the trick in my terminal to disable <C-s> and <C-q>.

Reply

This topic is now closed.