andrewradev / undoquit.vim Goto Github PK
View Code? Open in Web Editor NEWUndo a :quit -- reopen the last window you closed
Home Page: https://www.vim.org/scripts/script.php?script_id=5725
License: MIT License
Undo a :quit -- reopen the last window you closed
Home Page: https://www.vim.org/scripts/script.php?script_id=5725
License: MIT License
The plugin partially works for me, but windows are not getting restored to the same positions. This seems to be independent of the splitright
setting.
STR
nvim a.txt
:vsp
:e b.txt
:q
:Undoquit
Expected: window restores as it was
Actual: window restore, but swapped with the other split
I'm also seeing issues such as: :vsp
, then :sp
, if I close the original window (the one that wasn't split by :sp
) and then restore, it re-splits horizontally instead of vertically.
Just pointing out another undo close window plugin I stumbled on.
When close a tab with tab n
, where n is the tab number to be close, then <c-w>c
won't works.
Error detected while processing /Users/myUsername/.vim/bundle/undoquit.vim/plugin/undoquit.vim:
line 13:
E216: No such group or event: QuitPre * call undoquit#SaveWindowQuitHistory()
Do you use MacVim/gvim? It works perfectly in MacVim for me, but not terminal vim.
In the latest MacVim, quitting a tab by clicking on the X
on the tab GUI does not work. Quitting a tab with :q
works.
Hi,
Cloud it made to work in this situation?
I use
noremap Q :close<CR>
Hi
it does not work with set autochdir
If you have multiple tabs open, it seems this does not restore to the correct tab.
The error message reads:
Only one file name allowed: leftabove vsplit /Path/to/directory with spaces/someFile.txt
Looks like it should be an easy fix.
Thank you for being so responsive on issues for undoquit
and all your other plugins - they definitely help me to be more productive.
The position of the cursor could restored to the position before the buffer was closed. That would add an extra level of awesomeness to this script.
Thanks for making this btw. This should exist as a vim feature!
This plugin seems to handle only windows. Would be great to have all-in-one solution for undo close with undo close tab as well.
Currently when I close tab with multiple windows I cannot restore them. That's why I have to use different script https://www.reddit.com/r/vim/comments/3ke941/undo_close_tab/cuxwxy1/
How about overwriting optionally p to let it act correspondingly to <c-^>
for buffers in case the previous window now happens to be closed?
Good plugin!
I want this plugin could support a new feature:
Persist the opened files when :qa
and restore all windows when restart vim and press c-w U
。
Thanks!
The undoclosewin.vim plugin also restores windows closed by commands such as <c-w>c
or ZZ
. Is it outside of the scope of undo_quit_.vim or is it impossible to implement this reliably ?
If not, how about allowing undoquit to undo closes of windows by such commands as well (perhaps by taking a look at undoclosewin.vim's implementation) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.