From the the Vifm wiki and using xclip , they show how to copy the filename of a selected file:
nnoremap yn :!echo -n %c | xclip -selection clipboard %i:echo expand('%"c') "is yanked to clipboard"
But it copies it with the extension, how can I copy the name of a file without it's extension to the clipboard?
Asked by GhostOrder
(181 rep)
Aug 6, 2020, 02:21 PM
Last activity: Aug 8, 2020, 05:01 PM
Last activity: Aug 8, 2020, 05:01 PM