diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index 0a5de8a..4167df0 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -369,7 +369,11 @@ endfunction function! NERDTreeCopyPath() let l:nodePath = g:NERDTreeFileNode.GetSelected().path.str() if has("clipboard") - let @* = l:nodePath + if &clipboard == "unnamedplus" + let @+ = l:nodePath + else + let @* = l:nodePath + endif call nerdtree#echo("The path [" . l:nodePath . "] was copied to your clipboard.") else call nerdtree#echo("The full path is: " . l:nodePath)