> cd | cd -
Mmmh, still wrong as cd overrides lcd for the current window.
I know this is vim_use, not vim_abuse, but anyway this is what I did:
0split | lcd . | quit
This will honour whatever the setting of your current window is, while making
the buffer names relative to the effective working directory for that window.
Apparently a small split height (0 in this case) reduces or even eliminates
the visual artifacts. Also, if you put that line after a silent make but
before the redraw, no additional artifacts will show up. True, it's ugly, but
it does the work. A safer, cleaner alternative I can figure out is to modify
errorformat so that getcwd() is left out of %f, but it's tedious as this
should be down for any compiler that potentially spits out an absolute
path.
Cheers
--
Carlos
--
--
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.
Wednesday, July 29, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment