On Tue, May 3, 2011 at 3:58 AM, Ben Schmidt: > This perhaps allows the best of both worlds (once the people who, like > me, prefer characterwise clipboard pasting, put together some mappings > to do it that way).
I'd like to mention that there is another way to resolve this issue: Instead of scanning the whole selection buffer for an EOL character, you could simply allow clip_yank_selection() to take MAUTO as a valid motion type and then have it switch between MCHAR/MLINE depending on the value of the LAST character only. Currently this strategy is only being employed for setting registers via `let @r = "foo\nbar\n"'. It would be simple to add the MAUTO functionality to clip_yank_selection(), and then change all the strchr(buf, '\n') calls in the OS ports to simply marking strings from the clipboard as MAUTO. I prefer this solution myself, since it allows very granular control of the selection's motion type, but I surmised that it would be rejected because it would change the behavior of all the OS versions, instead of just one. Also, this control is annoyingly incompatible with Firefox since it does not seem to allow you to select a terminating newline. Cheers, Sung Pae -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
