rubik
rubik

Reputation: 9104

How to get rid of windows in Vim completely?

I really can't stand vertical or horizontal windows split in Vim, mainly because I never remember how to jump from one to another and all the windows-related commands.

For example, when I use the help command, Vim opens the text in a horizontal split. Is it possible to configure Vim such that buffers are always used instead of windows?

Upvotes: 0

Views: 124

Answers (1)

Kent
Kent

Reputation: 195029

buffers are the in-memory text/file you opened. Window is the way that vim shows a buffer(s) to you. You cannot see a buffer without window. I guess what you meant is, always using single maximized window.

To the question : how to open help in a separate buffer:

autocmd FileType help wincmd o

will do. It open help doc in a maximized window, of course, in a separated buffer.

To "disable" split, just don't execute those split commands.. like :sp ...

Upvotes: 2

Related Questions