-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
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
请教如何关闭当前已打开的文件,但不关闭当前 buffer 呢 #399
Comments
Close current buffer:
You can check the wiki or use
For prefixes such as |
嗯啊,多谢解答~ |
I have tried to close the recent buffer using the keybinding |
nvimdots/lua/keymap/editor.lua Line 23 in d425bfd
Line 29 in d425bfd
|
What u mean by "just did not have any response"? And what did u do before this (how to reproduce this)? |
Sorry for the vague description. 'just did not have any response' means when I pressed To reproduce the results, the app I use is iTerm2, and my device is M1 pro macbook pro, first of all, I type |
@Saton-anger Did you make any modifications to these files externally? Any move or deletion will invalidate the file handle held by the current buffer, leading to failures in closing such buffers. Added to that, what you see when using |
I had modified them with vscode. But when I saved the files, quit the vscode to make sure no external modificaitons to those files and reopen those files with terminal and nvim, I still can not close the current buffer using |
Did you close this buffer (via |
Does clicking on the close button of this buffer in bufferline help? |
which means both of the two buffers were closed. |
Hmm this is strange... Can you provide a complete repro (with detailed steps, including those corresponding files if possible)? I can't reproduce this with iTerm2. |
And did u follow #344 to setup ur profile correctly? |
Thanks for the info! But a complete repro is still necessary, otherwise we don't know where the problem lies. |
Ok, thanks. Should I open a new issue to proffer a complete repro? |
That would be appreciated, cause this sounds like a bug somewhere. |
OK, thanks again for your time. |
Feature description
刚接触 neovim,有些快捷键不太了解。如图这样的关闭当前文件,或关闭非当前文件有快捷键吗?
我试过执行
这几个都会将当前 buffer 关闭导致 nvim 退出。
另外这套配置有快捷键参考列表嘛,对萌新更友好一些
Additional information
No response
The text was updated successfully, but these errors were encountered: