sponsor Vim development Vim logo Vim Book Ad

basic Tip #596: Insert location of the currently edited file

 tip karma   Rating 1/1, Viewed by 1050 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   October 30, 2003 0:53      complexity:   basic
author:   Max Ischenko      as of Vim:   5.7

:imap <C-r>@ <C-r>=expand("%:p:h")<cr>

 rate this tip  Life Changing Helpful Unfulfilling 

<< suppressing file changed warnings in a specific buffer | indet a code block - >i{ >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge.net Logo