-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use info://...
for buffer name
#10
Comments
I'm afraid I don't quite follow. Can you please give me an example (even if it is contrived) where my scheme could be a problem? The reason I went with for example I would prefer to remain compatible with this suggestion because it is supported by Emacs as well (principle of lease surprise). However, I think pragmatism trumps least surprise, Vim is not Emacs. Truth be told, I don't like working on this plugin anymore. It is far too complicated for Vim script and it relies on standalone |
For example, user may want to edit the file named touch info:info.vim
vim info:info.vim # shows the info page for info.vim With the current scheme, info.vim cannot tell whether the user wants the file or the info page.
In some cases, you may want to exclude some files from With So I think
Fair enough 🙃 |
Thanks for nice plugin!
Currently, info.vim uses
info:...
format for buffer names. I suggest changing it to the standardinfo://...
format, following many other plugins, e.g.fugitive://
,man://
,fern://
.Vim always interprets a filename that starts with
scheme://
as an absolute path, so it removes ambiguity. For example, there can be a file namedinfo:...
in cwd. This is why:h Cmd-event
recommends this format. This also allows ignoring the info buffers in:oldfiles
withset viminfo+=rinfo://
.The text was updated successfully, but these errors were encountered: