On 23/01/28 10:09 AM, Ernie Rael wrote:
I'm working on a project with several files. I try to mostly work in a "dev" location where I can run the various files individually; the files usually have a in_dev flag, which sets things up to run standalone (often simply adjusting imports). When ready to run in the application, I copy the file to their "real" location and manually adjust what's needed in the files. The manual step is a hassle.

If I could get the realpath of the file that's executing I could set the flags when the file is first loaded (and remember to do "source %" and not "source" while playing), and not need manual adjustments.

Then I can automate the update of the app files.

-ernie

For my use case, I think I can simply use the current directory.

-ernie

--
--
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/f984d1c0-da52-941c-2c49-c5245e57950d%40raelity.com.

Raspunde prin e-mail lui