On Fri, May 28, 2021 at 12:55 AM justrajdeep <[email protected]> wrote:
>
> Hi
>
> I have a file and a soft link to it
>
>
> ls -ltr $OUT/src/verif/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv
> lrwxrwxrwx 1 ramondal gfx11 85 May 27 10:21
> $OUT/src/verif/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv ->
> $ROOT/src/verif/glx/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv
>
> i open the symlink file using gvim
>
> gvim -u $VIM_HOME/share/vim/vim82/vimrc_example.vim
> $OUT/src/verif/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv
>
> delete the buffer
>
> :bd
>
> Then i try to open the original file
>
> :e $ROOT/src/verif/glx/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv
>
> instead of opening the actual file it again opens the symlink file:
>
> $OUT/src/verif/gl2cc/gl2cc_top/tb/gl2cc_top_tb_pkg.sv
>
> I think this is a bug.
>
> I am using vim 8.2.1523
>
> Thanks in advance :)
IIUC you fell upon a documented but little known quirk of Vim, namely,
:bdelete does not delete everything about a buffer; if you want to
forget everything (but maybe more than you want), use :bwipeout
See
:help :bdelete
:help :bwipeout
Best regards,
Tony.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAJkCKXsDkN42wCoY%2B2NtyrPubAn-XxDjO8m8b6n4kOXWC9RSbw%40mail.gmail.com.