{"action":"created","issue":{"url":"https://api.github.com/repos/wellle/targets.vim/issues/159","repository_url":"https://api.github.com/repos/wellle/targets.vim","labels_url":"https://api.github.com/repos/wellle/targets.vim/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/wellle/targets.vim/issues/159/comments","events_url":"https://api.github.com/repos/wellle/targets.vim/issues/159/events","html_url":"https://github.com/wellle/targets.vim/issues/159","id":173582474,"number":159,"title":"paste in target","user":{"login":"emugel","id":350354,"avatar_url":"https://avatars.githubusercontent.com/u/350354?v=3","gravatar_id":"","url":"https://api.github.com/users/emugel","html_url":"https://github.com/emugel","followers_url":"https://api.github.com/users/emugel/followers","following_url":"https://api.github.com/users/emugel/following{/other_user}","gists_url":"https://api.github.com/users/emugel/gists{/gist_id}","starred_url":"https://api.github.com/users/emugel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emugel/subscriptions","organizations_url":"https://api.github.com/users/emugel/orgs","repos_url":"https://api.github.com/users/emugel/repos","events_url":"https://api.github.com/users/emugel/events{/privacy}","received_events_url":"https://api.github.com/users/emugel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-27T07:06:54Z","updated_at":"2016-10-11T20:59:14Z","closed_at":null,"body":"Not an issue, but more of a question. \r\n\r\nFirst of all thanks for targets.vim, it's so convenient...\r\n...so convenient that I'd miss also being able to use for targeted pastes !\r\n\r\nA close feature would be vim-easyclip substitution operator (overriding the 's' key by default). Unfortunately I do not want to use it because it is bloated with features and I disagree with its paradigm (send everything to the blackhole register by default seems wrong).\r\n\r\nDo you have some workarounds to suggest? "},"comment":{"url":"https://api.github.com/repos/wellle/targets.vim/issues/comments/253044268","html_url":"https://github.com/wellle/targets.vim/issues/159#issuecomment-253044268","issue_url":"https://api.github.com/repos/wellle/targets.vim/issues/159","id":253044268,"user":{"login":"dbmrq","id":15813674,"avatar_url":"https://avatars.githubusercontent.com/u/15813674?v=3","gravatar_id":"","url":"https://api.github.com/users/dbmrq","html_url":"https://github.com/dbmrq","followers_url":"https://api.github.com/users/dbmrq/followers","following_url":"https://api.github.com/users/dbmrq/following{/other_user}","gists_url":"https://api.github.com/users/dbmrq/gists{/gist_id}","starred_url":"https://api.github.com/users/dbmrq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbmrq/subscriptions","organizations_url":"https://api.github.com/users/dbmrq/orgs","repos_url":"https://api.github.com/users/dbmrq/repos","events_url":"https://api.github.com/users/dbmrq/events{/privacy}","received_events_url":"https://api.github.com/users/dbmrq/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T20:59:14Z","updated_at":"2016-10-11T20:59:14Z","body":"Good idea. I just did this:\r\n\r\n```vim\r\nfunction! TargetPaste(type, ...)\r\n    if a:type == 'line'\r\n        normal! `[V`]p\r\n    else\r\n        normal! `[v`]p\r\n    endif\r\nendfunction\r\n\r\nnnoremap <leader>t :set opfunc=TargetPaste<CR>g@\r\n```\r\n\r\nSo I can do something like `<leader>tin)` to paste text replacing what's in the next parentheses.\r\n"}}
{"actor":{"display_login":"dbmrq"}}