macosvimclipboardneovim

Copy the current file name to the clipboard


How can I send the current buffer's filename to the clipboard from Vim on OS X.


Solution

  • does this help you?

    :let @+=expand('%:p')
    

    if you need do this often, create a map.