Yanking a file name into a buffer
> Is there a normal command to yank a filename into a bufferBased on your example, I suspect you mean "yank a filename into a
> based on the isfname option. Something kind of like yiw?
*register*", rather than a buffer. If this is the case, you can
do something like
which will put the filename under the cursor into the scrap
register. Adjust the @" for your favorite register.
This can easily be mapped like
:nnoremap <f3> :let @"=expand("<cfile>")<cr>
which will make <f3> behave like you describe. HTH,