Hi,
in earlier ViM-versions, :bdel could be used to close directory listings, and e.g. :bn could be used to switch away from the directory listing to the next buffer. But with newer versions, this unfortunately does not work anymore, which makes it really cumbersome to e.g. view/edit all files in a directory by "vim *". Is there a way to fix this? So, that I e.g. can do "vim *", and then close directory-listings with ":bdel" or switch away from a directory-listing by ":bn"? best regards, Roland -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201008094953.GE3383%40localhost. |
On Do, 08 Okt 2020, Roland Freikamp wrote: > Hi, > > in earlier ViM-versions, :bdel could be used to close directory listings, > and e.g. :bn could be used to switch away from the directory listing to > the next buffer. > But with newer versions, this unfortunately does not work anymore, which > makes it really cumbersome to e.g. view/edit all files in a directory by > "vim *". > > Is there a way to fix this? > So, that I e.g. can do "vim *", and then close directory-listings with > ":bdel" or switch away from a directory-listing by ":bn"? Hm, indeed, it looks like you need to run :bd twice. Not sure what is causing this. For me :bd! also works. You might want to contact Dr. Chip about this issue. Best, Christian -- Nur wer verzagend das Steuer losläßt, ist im Sturm verloren. -- Emanuel Geibel -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201009071534.GA30826%40256bit.org. |
In reply to this post by Roland Koebler
Roland Freikamp wrote:
> Hi, > > in earlier ViM-versions, :bdel could be used to close directory listings, > and e.g. :bn could be used to switch away from the directory listing to > the next buffer. > But with newer versions, this unfortunately does not work anymore, which > makes it really cumbersome to e.g. view/edit all files in a directory by > "vim *". > > Is there a way to fix this? > So, that I e.g. can do "vim *", and then close directory-listings with > ":bdel" or switch away from a directory-listing by ":bn"? > Let me explain why it is that the netrw buffer is (normally) hidden. Originally netrw was written to handle file transfers over the network via ftp, ssh, etc, and it still does. The next major feature was to have netrw display and work with remote directories; Bram asked me to have it do the same thing for local directories. Often enough one does not have password-free setups to do remote work, and so one can get pestered by the resulting need to have to enter passwords for every remote listing/file transfer/etc. To facilitate this, netrw supports "fastbrowse" (see :he g:netrw_fastbrowse) which keeps netrw listings hidden rather than destroying them; subsequent requests to re-list a directory then just bring up the appropriate hidden file instead. See :he 'bh' and, while in a netrw listing, try :set bh; you'll find that netrw has bh=hide. You can use :bd! to force a real deletion of a directory as opposed to just hiding it. Alternatively, you can put let g:netrw_fastbrowse=0 and :bd will then truly delete the netrw buffer -- if you have v171a (or later) of netrw. It was already supposed to be deletable when g:netrw_fastbrowse was zero, but s:NetrwSafeSetting() needed an update to force that "safe" setting for netrw buffers (hence v171a). You can get v171a from my website: http://www.drchip.org/astronaut/vim/index.html#NETRW . Regards, Chip Campbell -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/dc404e87-8692-032f-a37f-219b5a988986%40drchip.org. |
Charles Campbell <[hidden email]> wrote:
> You can get v171a from my website: > http://www.drchip.org/astronaut/vim/index.html#NETRW . Hi Charles The above URL and your website http://www.drchip.org/ do not work for me somehow. I get "The connection has timed out". It does not look like a temporary outage, since I remember trying a few weeks ago and it did not work either. I cannot ping www.drchip.org either. Regards Dominique -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAON-T_iCckBsSJtDCOwqmS-%3DVeTatY9V5HiuvaC867zj8Sm%2B0w%40mail.gmail.com. |
Charles Campbell <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5Lk0MeJgCgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">camp...@...> wrote: www.drchip.org is an alias for drchip.org. drchip.org has address 67.23.226.159 drchip.org mail is handled by 0 drchip.org. -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/3a244ba6-cc29-4e70-afb4-2e7607b39cc3o%40googlegroups.com. |
Richard Mitchell wrote:
Richard's results look like what I see with nslookup: www.drchip.org canonical name = drchip.org.That's been my website for years, too. Perhaps you can try traceroute and find out what's dropping the link. Chip Campbell -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/bb76d3f6-6e6a-3802-fc87-578f771dc672%40drchip.org. |
In reply to this post by Dominique Pellé
On Sat, Oct 10, 2020 at 12:28 AM Dominique Pellé
<[hidden email]> wrote: > > Charles Campbell <[hidden email]> wrote: > > > You can get v171a from my website: > > http://www.drchip.org/astronaut/vim/index.html#NETRW . > > Hi Charles > > The above URL and your website http://www.drchip.org/ > do not work for me somehow. I get "The connection has > timed out". It does not look like a temporary outage, since > I remember trying a few weeks ago and it did not work either. > I cannot ping www.drchip.org either. > > Regards > Dominique I just tried http://www.drchip.org/astronaut/vim/ (which has been for years the link from my Vim page to Dr. Chip's) and it came up immediately with no problem. You might want to bookmark the site "Down for everyone or just for me?" https://downforeveryoneorjustme.com/ Best regards, Tony. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXuMeLyM-_uQff5KLVZALwWxWvU639i4seoszWq6ysXWHg%40mail.gmail.com. |
P.S. I can get (from Belgium) to Dr. Chip's site with no problem but
downforeveryoneorjustme.com cannot. Best regards, Tony. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXuN0HUwEHZxh%3DxjOta0qy-RG2aqnVOqDa%3D3pLAeRo8utQ%40mail.gmail.com. |
On Sat, Oct 10, 2020 at 11:29 AM Tony Mechelynck
<[hidden email]> wrote: > > P.S. I can get (from Belgium) to Dr. Chip's site with no problem but > downforeveryoneorjustme.com cannot. > > Best regards, > Tony. P.P.S. I tried to Cc Dr. Chip on the above message but I got a bounce: "drchip wasn't found at campbellfamily.biz" That message was headed "Office365" and its From: line was [hidden email] Best regards, Tony. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsvT7aSG58ZAqg5Z7356TGjwWeVfQ_ZdPsNd4Exbk-N8A%40mail.gmail.com. |
On Saturday, October 10, 2020 at 5:40:00 AM UTC-4, Tony Mechelynck wrote: On Sat, Oct 10, 2020 at 11:29 AM Tony Mechelynck I am intrigued DrChip.org failed for your test site. It worked for "me". <img src="blob:https://groups.google.com/94c06d1d-a708-4ed1-ae63-6e1730635e3f" style="" width="200" height="102"> I wonder if the dns server i'm using had a long TTL. Currently I show: ;; ANSWER SECTION: drchip.org. 14374 IN A 67.23.226.159 so, I have 14374 seconds to go before it updates again. However, as Chip as already weighed in, if he had recently changed anything, he certainly would have said so and he didn't. I want to make it clear I never doubted Dominque was having a real issue and was hoping the IP address would give him a work around and something to check against his own query. campbellfamily.biz. 3600 IN A 66.96.149.21 uses a different registrar and name servers. doesn't mean anything, just an observation. -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/2b3e79cd-bdfa-4b4c-ae2b-5503e9b3a706o%40googlegroups.com. |
Richard Mitchell wrote:
> > > On Saturday, October 10, 2020 at 5:40:00 AM UTC-4, Tony Mechelynck wrote: > > On Sat, Oct 10, 2020 at 11:29 AM Tony Mechelynck > <[hidden email] <javascript:>> wrote: > > > > P.S. I can get (from Belgium) to Dr. Chip's site with no problem > but > > downforeveryoneorjustme.com <http://downforeveryoneorjustme.com> > cannot. > > > > Best regards, > > Tony. > > P.P.S. I tried to Cc Dr. Chip on the above message but I got a > bounce: > "drchip wasn't found at campbellfamily.biz > <http://campbellfamily.biz>" > > That message was headed "Office365" and its From: line was > [hidden email] <javascript:> > > Best regards, > Tony. > > > I am intrigued DrChip.org failed for your test site. It worked for "me". > > I wonder if the dns server i'm using had a long TTL. Currently I show: > > ;; ANSWER SECTION: > drchip.org.14374INA67.23.226.159 > > so, I have 14374 seconds to go before it updates again. > However, as Chip as already weighed in, if he had recently changed > anything, he certainly would have said so and he didn't. > > I want to make it clear I never doubted Dominque was having a real issue > and was hoping the IP address would give him a work around and something > to check against his own query. > > campbellfamily.biz.3600INA66.96.149.21 > > uses a different registrar and name servers. doesn't mean anything, > just an observation. > My email now is: [hidden email]-NOSPAM (ie. remove the NOSPAM from the address). It used to be [hidden email], though. I updated all the syntax files I support with it but then I updated syntax/vim.vim, and my script for the auto-generated portion hadn't been updated and I'm afraid I didn't notice and so syntax/vim.vim got left with a stale address. I've fixed that just this past week. I myself didn't know that the www. in www.drchip.org was optional. I doubt that I can train my fingers to skip typing the www. . 14374 seconds -- well, that's only four hours! What's the rush? :) I just tried Tony's suggestion:https://downforeveryoneorjustme.com/ and it worked, both with www.drchip.org and with drchip.org. Dominique -- did using the ip address directly help? What did traceroute show? Does nslookup get the ip address? Regards, Chip Campbell -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8576fcb3-39bd-aa32-62df-704b2b58c59f%40drchip.org. |
On Sun, Oct 11, 2020 at 6:42 PM Charles Campbell <[hidden email]> wrote:
[…] > My email now is: [hidden email]-NOSPAM (ie. remove the NOSPAM > from the address). > > It used to be [hidden email], though. I updated all the > syntax files I support with it but then I updated syntax/vim.vim, and my > script for the auto-generated portion hadn't been updated and I'm afraid > I didn't notice and so syntax/vim.vim got left with a stale address. > I've fixed that just this past week. […] Aha! Time to update my list of contacts then. Best regards, Tony. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXvCToEzcsbeHTp647u4okbjRCg9g4MbdJ0rDaApu2trOQ%40mail.gmail.com. |
In reply to this post by Charles Campbell-2
Hi,
since this is still really annoying me, I have to ask again, if there is *any* solution. > You can use :bd! to force a real deletion of a directory > as opposed to just hiding it. Unfortunately, this does not work. No matter how often I type ":bd", ":bd!", ":bn", ":bw", ... nothing happens. (VIM 8.2, netrw v168) Example: - directory structure: ./dir/ ./dir/subfile ./file - vim * Result: - vim shows the "dir"-directory-listing, and there is no way to (a) delete the buffer or (b) switch to the next buffer with :bd/:bn. - :n switches to the next buffer, but does not cycle/wrap-around. - The *only* way to close the directory-listing, is: - :buffers - look for the buffer-numer - :bdel <num> - :bn In earlier vim-versions, :bdel was enough. So, is there *any* way to solve this, so that :bdel (or some other command) closes the directory listing and switches to the next buffer? (Or maybe a way to prevent "vim *" to open directory listings at all?) Thanks, Roland -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210308215226.GA10881%40localhost. |
Roland Freikamp wrote:
> Hi, > > since this is still really annoying me, I have to ask again, if there is > *any* solution. > >> You can use :bd! to force a real deletion of a directory >> as opposed to just hiding it. > Unfortunately, this does not work. No matter how often I type ":bd", > ":bd!", ":bn", ":bw", ... nothing happens. > (VIM 8.2, netrw v168) > > Example: > > - directory structure: > > ./dir/ > ./dir/subfile > ./file > > - vim * > > Result: > - vim shows the "dir"-directory-listing, and there is no way to (a) delete > the buffer or (b) switch to the next buffer with :bd/:bn. > - :n switches to the next buffer, but does not cycle/wrap-around. > - The *only* way to close the directory-listing, is: > - :buffers > - look for the buffer-numer > - :bdel <num> > - :bn > In earlier vim-versions, :bdel was enough. > > So, is there *any* way to solve this, so that :bdel (or some other command) > closes the directory listing and switches to the next buffer? > (Or maybe a way to prevent "vim *" to open directory listings at all?) > vim * shows the dir/ and its file, :bn then moves on to "file". Repeating, and instead of :bn I used :bd -- and the "file" is opened with contents shown. Perhaps upgrading netrw would be of assistance in this; its at 171g (v170 should be available as a regular vim update, and 171g is available from my website as http://www.drchip.org/astronaut/vim/index.html#NETRW). Regards, Chip Campbell -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/79dd5d01-6f49-6f97-08ef-a3879c5a8a41%40drchip.org. |
Hi,
thanks for your answer. Unfortunately, it does not work here, even after upgrading to netrw v171g. > Well, I just don't see that problem. > > vim * > shows the dir/ and its file, > :bn then moves on to "file". > > Repeating, and instead of :bn I used :bd -- and the "file" is opened with > contents shown. This does not work here -- :bn and :bd do absolutely nothing. It looks like this does not work when "set hidden" is used. :( So: Is there any way to use "set hidden" (which I need, since I want to edit several files simultaneously), and being able to switch away/close directory listings with :bn/:bd or some other command? > Perhaps upgrading netrw would be of assistance in this; its at 171g (v170 > should be available as a regular vim update, and 171g is available from my > website as http://www.drchip.org/astronaut/vim/index.html#NETRW). Unfortunately not. Best regards Roland -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210309170411.GA23840%40localhost. |
Hi,
so, there is no way to prevent netrw from breaking the :bn/:bdel behaviour? Will this netrw-bug be solved soon? Until then, the only way seems to completely diable netrw, e.g. by let g:loaded_netrw=1 Best regards Roland On 2021-03-09 18:04:11 +0100, Roland Freikamp wrote: > Hi, > > thanks for your answer. Unfortunately, it does not work here, > even after upgrading to netrw v171g. > > > Well, I just don't see that problem. > > > > vim * > > shows the dir/ and its file, > > :bn then moves on to "file". > > > > Repeating, and instead of :bn I used :bd -- and the "file" is opened with > > contents shown. > This does not work here -- :bn and :bd do absolutely nothing. > It looks like this does not work when "set hidden" is used. :( > > So: Is there any way to use "set hidden" (which I need, since I want to > edit several files simultaneously), and being able to switch away/close > directory listings with :bn/:bd or some other command? > > > Perhaps upgrading netrw would be of assistance in this; its at 171g (v170 > > should be available as a regular vim update, and 171g is available from my > > website as http://www.drchip.org/astronaut/vim/index.html#NETRW). > Unfortunately not. > > > Best regards > Roland > > -- > -- > 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 [hidden email]. > To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210309170411.GA23840%40localhost. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210324192746.GA390%40localhost. |
Hi Roland, You probably don't want to hear this, but :bn, :bd etc work as expected here. Have you any script or plugin that may be overriding the usage of the :b* commands? try starting vim with ``` vim --clean * ``` to see if the commands work now. On Wed, 24 Mar 2021 at 19:27, Roland Freikamp <[hidden email]> wrote: Hi, -- regards Chris Allison -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEL%2B%3DCFJHDvERK2Ua4aKWe4Ow%2BiU0%3DLUW9rAba%2Bm0vH5LvfbKQ%40mail.gmail.com. |
Free forum by Nabble | Edit this page |