Comment on Vim Splits – Move Faster and More NaturallyparentComments−alphard13yI'm using the following to expand "%%" in command mode to the full path of the current open file's directory: cabbr <expr> %% expand('%:p:h') You could also use :. instead of :p to get the relative path, see :help c_% and :help filename_modifiers−wahnfrieden13yWow, elegant. Thank you!
Comments
I'm using the following to expand "%%" in command mode to the full path of the current open file's directory:
You could also use :. instead of :p to get the relative path, see :help c_% and :help filename_modifiersWow, elegant. Thank you!