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
[netrw] Netrw will ignore any files after a directory when using :bnext #5073
Labels
Comments
Yes, what happens is. Vim notices that it tries to open a directory. Then netrw kicks in and creates a new unnamed buffer, that contains the filecontent for that buffer. As it created a new buffer, this buffer will be at then end of the current buffer list, so the next |
this looks indeed like a duplicate of #2597 |
atweiden
pushed a commit
to atweiden/macfiles
that referenced
this issue
Jul 27, 2020
summary - don't use gQ to enter ex mode - don't use gq to format text - don't use gw to format text - add more default plugins to disable - allow netrw - which could be disabled - via - let g:loaded_netrwPlugin = 1 - see - vim/vim#5073 credit - https://github.com/mengelbrecht/dotfiles/blob/master/config/nvim/init.vim
atweiden
pushed a commit
to atweiden/pacfiles
that referenced
this issue
Jul 27, 2020
summary - don't use gQ to enter ex mode - don't use gq to format text - don't use gw to format text - add more default plugins to disable - allow netrw - which could be disabled - via - let g:loaded_netrwPlugin = 1 - see - vim/vim#5073 credit - https://github.com/mengelbrecht/dotfiles/blob/master/config/nvim/init.vim
atweiden
pushed a commit
to atweiden/ttyfiles
that referenced
this issue
Jul 27, 2020
summary - don't use gQ to enter ex mode - don't use gq to format text - don't use gw to format text - add more default plugins to disable - allow netrw - which could be disabled - via - let g:loaded_netrwPlugin = 1 - see - vim/vim#5073 credit - https://github.com/mengelbrecht/dotfiles/blob/master/config/nvim/init.vim
atweiden
pushed a commit
to atweiden/voidfiles
that referenced
this issue
Jul 27, 2020
summary - don't use gQ to enter ex mode - don't use gq to format text - don't use gw to format text - add more default plugins to disable - allow netrw - which could be disabled - via - let g:loaded_netrwPlugin = 1 - see - vim/vim#5073 credit - https://github.com/mengelbrecht/dotfiles/blob/master/config/nvim/init.vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Bug
When I open vim with
vim *
and there's a directory present in the buffers, using:bnext
will restart the cycle once it hits the directory.Example
If I have the following file list
When navigating through using
:bnext
(starting atfile1.php
), once it hitsA-Directory
it will begin cycling atfile1.php
instead of continuing on toa-file-after-the-directory-in-the-list.php
Description
:bnext
will restart at the 0th buffer once it hits a directory in the list in:ls
Steps
vim *
on a directory that has both files and a directory:bnext
:bnext
will begin at the start of the list of buffers instead of continuing on to the next buffer.Expected
I would expect it to the go the next buffer in the list, not restart the cycle.
Environment
Additional
let loaded_netrwPlugin = 1
in the vimrc.The text was updated successfully, but these errors were encountered: