Monday, November 5, 2018

Re: using "gf" or "^Wf" with symlinked files?

Tim Chase <vim@tim.thechases.com> wrote:
> (the actual context is a remind(1) reminder file where ~/.reminders
> is a link to ~/.config/remind/reminders.rem which includes each of my
> individual calendar files are in that ~/.config/remind/ directory, so
> editing ~/.reminders doesn't give me quick access to the per-calendar
> subfiles that get included if I use "gf" and friends)

Can you have all of these include a path?

include ~/.config/remind/this
or
include $HOME/.config/remind/that

Do you actually need ~/.reminders for something, or it that just
your editing short cut? Because I'd use an env variable instead of
a symlink myself. "export REMINDERS=$HOME/.config/remind/reminders.rem"
"vi $REMINDERS"

I ask because noticing a filename is a symlink and then doing things
differently based on that seems like it will have a lot of unexpected
effects for a lot of other people.

Elijah

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment