question about :term

26 views
Skip to first unread message

tooth pik

unread,
Feb 26, 2025, 10:37:35 PMFeb 26
to vim...@googlegroups.com
when i have an edit session open in gvim, then start a :term inside that window, start a script running in the :term, then toggle back to the edit portion of the window to continue editing -- if in that edit session i edit another module i can't figure out how to quit the secondary edit without closing the whole edit window -- i tried :q, :bd, and they both end all editing and leave me with a whole window of :term

how can i quit that secondary edit and return to the first one?

sorry if i've explained this poorly

Enno

unread,
Feb 27, 2025, 8:32:09 PMFeb 27
to vim_use
Good evening,

I am indeed unsure what the exact problem is, but it seems something like `nnoremap <silent> Q :<c-u>buffer #<bar>bdelete #<CR>` to keep the current buffer's window open might help; 
that's a recurrent demand that has been addressed by many plug-ins such as https://github.com/mhinz/vim-sayonara

   Enno

tooth pik

unread,
Feb 27, 2025, 11:15:55 PMFeb 27
to vim...@googlegroups.com
hey this works -- thanx Enno!

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/3bf77651-78fc-4b32-ae7a-566d18fef5d4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages