I have searched and haven't found the solution.
I want to have makeprg set based on the current working directory when I first start a VIM session. So if I am in ~/dev/tester4 for instance and I open up tester.cpp, I want makeprg to be set to 'gmake tester4.mk'.
I have researched using filename-modifiers, but that appears to be based on the directory of the file I am currently editing which isn't right. Also, I have found getpwd() but I can't figure out how to just get the basename for that.
Any help would be greatly appreciated.
Steve
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
No comments:
Post a Comment