You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MacVim deletes searcch string of other apps even with MMShareFindPboard set to false #773
I have MMShareFindPboard set to false so that MacVim's search string doesn't interfere with that of other Cocoa apps. (There's nothing worse than e.g., hitting Cmd-F in Safari only to find the little search box pre-populated with something like \(foo\|bar\)\+.)
I've noticed however that MacVim will clear another app's search string.
Reproduce: Open Safari, go to some webpage, and search (Cmd-F) for some string that is present on the page. Maybe hit Cmd-G to go to the next instance. Do not close the "find bar" in Safari. Then Cmd-Tab to an open MacVim document (or just open one afresh) and hit /; enter a search string and hit . Then Cmd-Tab back to Safari and observe that, while the find bar is still open and occurrences of your search string are still highlighted, your search string is gone, and Cmd-G no longer works because it doesn't know what string it should be looking for the next occurrence of.
Just opened a pull request (#780) to fix this. Will merge that in shortly. I have decided to make Cmd-E and Cmd-G in MacVim still respect the system pasteboard even with MMShareFindPboard set to NO because it's an explicit MacVim command and it's a little more consistent with how other macOS apps behave. You can use normal Vim commands like n and / and they won't pollute the system find pasteboard.
Activity
eirnym commentedon Nov 8, 2018
additionally, with some plugins like better-whitespace, Safari's search string will be last search to clear whitespaces.
ychin commentedon Nov 9, 2018
Can confirm this happens. Will look into it.
Fix MMShareFindPboard not working properly and update docs
ychin commentedon Nov 19, 2018
Just opened a pull request (#780) to fix this. Will merge that in shortly. I have decided to make Cmd-E and Cmd-G in MacVim still respect the system pasteboard even with
MMShareFindPboardset toNObecause it's an explicit MacVim command and it's a little more consistent with how other macOS apps behave. You can use normal Vim commands likenand/and they won't pollute the system find pasteboard.