Skip to main content
9 events
when toggle format what by license comment
Nov 22, 2021 at 17:07 history edited B Layer CC BY-SA 4.0
give actual function call to get edited file path
Nov 22, 2021 at 17:03 comment added B Layer Um, expand('%:p'), that is...there's no .swp extension to deal with in this case.
Nov 22, 2021 at 16:49 comment added B Layer No prob. If you have follow up questions ask me here. BTW, I realized after writing that I may have taken your use of "fileswap" more literally than you intended...expand('%:p:r') could be used instead of swapname(...) in some places...but it actually has relevance because it relates to the whole "how do you make a path into a unique filename" thing...so I decided to leave it as is.
Nov 22, 2021 at 16:37 comment added Grzegorz Wierzowiecki From fast experiments in Vim session looks promising. I need a moment (later or another day) to try to integrate into script to see how it plays out there! :fingers_crossed:
Nov 22, 2021 at 16:00 history edited B Layer CC BY-SA 4.0
ugh more
Nov 22, 2021 at 15:48 history edited B Layer CC BY-SA 4.0
solution that encodes paths in a filename
Nov 22, 2021 at 15:34 history edited B Layer CC BY-SA 4.0
talk about different swap path schemes
Nov 22, 2021 at 15:19 history edited B Layer CC BY-SA 4.0
use OP example path
Nov 22, 2021 at 15:13 history answered B Layer CC BY-SA 4.0