We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use the following autocommands to save my open and closed folds in files.
au BufWinLeave ?* silent! mkview! au BufWinEnter,BufRead ?* silent! loadview
Of course, vimdiff resets the folding and this is as close as I can get to restoring after closing :Gdiff:
au BufWinLeave fugitive://* silent! loadview
But this doesn't work when you <C-W><C-O> from the original buffer for example. Is there a callback or something I could watch for to achieve this?
<C-W><C-O>
I believe it might help with #128 as well.
The text was updated successfully, but these errors were encountered:
This works a lot better, but I still need to manually :loadview after exiting Gdiff
:loadview
function! SaveFolds() let match = matchstr(bufname('%'), '^\(\(fugitive.*\)\@!.\)*$') if !empty(match) au! BufWinLeave silent mkview! au! BufWinEnter silent loadview silent loadview endif endfunction au BufReadPost * call SaveFolds()
Sorry, something went wrong.
No branches or pull requests
I use the following autocommands to save my open and closed folds in files.
Of course, vimdiff resets the folding and this is as close as I can get to restoring after closing :Gdiff:
But this doesn't work when you
<C-W><C-O>
from the original buffer for example. Is there a callback orsomething I could watch for to achieve this?
I believe it might help with #128 as well.
The text was updated successfully, but these errors were encountered: