vim-devicons icon indicating copy to clipboard operation
vim-devicons copied to clipboard

copy paste issues

Open squfrans opened this issue 8 years ago • 5 comments

after installing the plugin and fonts, i have problems copy pasting items followed by the icons. for example a line from unite git source:

  .gitignore

trying to select ".gitignore" will select the space in front of it as well. same issue in nerdtree. the mouse cursor seems to be offset by a number of characters, finishing the word also requires going further behind the end of the word.

i am using literation mono powerline nerd font complete mono:h15 same issue with other fonts i tried.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 29 2016 11:54:01)
MacOS X (unix) version
Included patches: 1-1362
Compiled by Homebrew

squfrans avatar Mar 14 '16 16:03 squfrans

Ugh I thought I replied but I guess I did not actually click 'comment' :angry:

Anyway.....

Are you copying and pasting with mouse (assuming gvim) or are you yanking and pasting the filename?

I think I am seeing a similar but different problem when I use yaW, e.g.:

yaW when my cursor is on the f of favicon.ico and then I p it into a buffer I get:   ]favicon.ico

I think I need to adjust where the whitespace appears when there are concealed characters

ryanoasis avatar Mar 15 '16 16:03 ryanoasis

yes, i am using the mouse in gvim (macvim)

squfrans avatar Mar 16 '16 10:03 squfrans

Thanks, I'll look into it :+1:

ryanoasis avatar Mar 16 '16 12:03 ryanoasis

Looks like this bug is related to vim itself and it has been around for a while now, see: http://vim.1045645.n5.nabble.com/behavior-of-mouseclick-positioning-cursor-with-concealed-chars-td4489865.html

I will at least fix the brackets being next to the files/dirs which should help when yanking a word via keyboard but unfortunately that will not solve the issue you have with positioning and selecting with the mouse.

ryanoasis avatar Jun 10 '16 18:06 ryanoasis

@squfrans Does this bug reappear when I update my Vim to the latest version?

get-me-power avatar Jul 24 '20 06:07 get-me-power