% register implementation

I have tested % register with command "%p and "%P in several source files.
For example, when /develop/XVim.git/XVim/XVim.m is opened, 
"XVim.m" is pasted, not a full path.