I've recently been trying to write a 'foldtext' setting that is specific
to LaTeX and would include useful information like for a example the
caption information for a folded environment. But then I discovered that
the 'foldtext' setting is local to a window and not to a buffer, making
filetype-specific foldtexts pretty much impossible. So if I were to for
example edit my LaTeX file and a C file that I'm writing about in the
same window I can't have foldtexts that are tuned for those files,
respectively.

Are you sure this is a problem? Have you tried it? :help local-options
explains how window-local settings are kept per-buffer so when you reuse
a window to edit a buffer you've edited before, the options for that
buffer+window combination are used, or if the buffer wasn't edited in
that window before, the options from the last window used for that
buffer. Window-local doesn't actually mean window-local irrespective of
buffer; it somewhat means window-and-buffer-local.

Ben.



--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui