Reputation: 1380
In fact, I just want to write a script to toggle preview
window. But it seems can't archived from any internal setting of vim.
So, as title. I want to write a script to do it. Any one knows how to check preview
window is opened(or existed)?
Upvotes: 7
Views: 1312
Reputation: 8038
You can add %w
to your statusline
config to get it to say [Preview]
for the relevant window.
sample status line setting (in vimrc)
set statusline=%.50F%m%r\ %y\%w\ buffer\ %n\ %l\|%c\ [%p%%]
see :h statusline
for more info
Upvotes: 0