{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1","id":49301628,"html_url":"https://github.com/vim-utils/vim-troll-stopper/pull/1","diff_url":"https://github.com/vim-utils/vim-troll-stopper/pull/1.diff","patch_url":"https://github.com/vim-utils/vim-troll-stopper/pull/1.patch","issue_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/1","number":1,"state":"closed","locked":false,"title":"Try to fix lag issue when switching between a lot of buffers","user":{"login":"chenoweth","id":8505073,"avatar_url":"https://avatars.githubusercontent.com/u/8505073?v=3","gravatar_id":"","url":"https://api.github.com/users/chenoweth","html_url":"https://github.com/chenoweth","followers_url":"https://api.github.com/users/chenoweth/followers","following_url":"https://api.github.com/users/chenoweth/following{/other_user}","gists_url":"https://api.github.com/users/chenoweth/gists{/gist_id}","starred_url":"https://api.github.com/users/chenoweth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenoweth/subscriptions","organizations_url":"https://api.github.com/users/chenoweth/orgs","repos_url":"https://api.github.com/users/chenoweth/repos","events_url":"https://api.github.com/users/chenoweth/events{/privacy}","received_events_url":"https://api.github.com/users/chenoweth/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nThank you for this very useful vim plugin.\r\nI'm new to github and I don't know a lot about vimscript, however it seems to me that the plugin causes some lag when I switch between a lot of buffers.\r\n\r\nI think it comes from the fact that the more I switch between buffers the more the `HighlighTrolling()` function piles highlight patterns.\r\n\r\nAt least, that's what I've been told on [vi.stackexchange.com](https://vi.stackexchange.com/questions/5316/fixing-lag-due-to-vim-troll-stopper-plugin).\r\n\r\nI fixed the issue by changing the event that triggers the autocommand that calls the function from `BufEnter` to `BufNewFile,BufRead`.\r\nIt is not relevant to the issue, but I also wrapped the autocmd inside an augroup and cleared it with `autocmd!`.\r\n\r\nI don't know if it's correct, but it seems to work on my machine, so I thought I could propose you this pull request.\r\n\r\nThank you for having read my message, have a good day.","created_at":"2015-10-30T17:53:24Z","updated_at":"2015-10-30T18:44:57Z","closed_at":"2015-10-30T18:44:57Z","merged_at":"2015-10-30T18:44:57Z","merge_commit_sha":"e15d658bb6526490594501bb96fd5586a59d1ed6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/1/comments","statuses_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/statuses/56f41af78007e0246debf2ed9bc31b37c2fefaec","head":{"label":"chenoweth:lagfix","ref":"lagfix","sha":"56f41af78007e0246debf2ed9bc31b37c2fefaec","user":{"login":"chenoweth","id":8505073,"avatar_url":"https://avatars.githubusercontent.com/u/8505073?v=3","gravatar_id":"","url":"https://api.github.com/users/chenoweth","html_url":"https://github.com/chenoweth","followers_url":"https://api.github.com/users/chenoweth/followers","following_url":"https://api.github.com/users/chenoweth/following{/other_user}","gists_url":"https://api.github.com/users/chenoweth/gists{/gist_id}","starred_url":"https://api.github.com/users/chenoweth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenoweth/subscriptions","organizations_url":"https://api.github.com/users/chenoweth/orgs","repos_url":"https://api.github.com/users/chenoweth/repos","events_url":"https://api.github.com/users/chenoweth/events{/privacy}","received_events_url":"https://api.github.com/users/chenoweth/received_events","type":"User","site_admin":false},"repo":{"id":45257711,"name":"vim-troll-stopper","full_name":"chenoweth/vim-troll-stopper","owner":{"login":"chenoweth","id":8505073,"avatar_url":"https://avatars.githubusercontent.com/u/8505073?v=3","gravatar_id":"","url":"https://api.github.com/users/chenoweth","html_url":"https://github.com/chenoweth","followers_url":"https://api.github.com/users/chenoweth/followers","following_url":"https://api.github.com/users/chenoweth/following{/other_user}","gists_url":"https://api.github.com/users/chenoweth/gists{/gist_id}","starred_url":"https://api.github.com/users/chenoweth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenoweth/subscriptions","organizations_url":"https://api.github.com/users/chenoweth/orgs","repos_url":"https://api.github.com/users/chenoweth/repos","events_url":"https://api.github.com/users/chenoweth/events{/privacy}","received_events_url":"https://api.github.com/users/chenoweth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chenoweth/vim-troll-stopper","description":"Stop Unicode trolls from messing with your code.","fork":true,"url":"https://api.github.com/repos/chenoweth/vim-troll-stopper","forks_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/forks","keys_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/teams","hooks_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/hooks","issue_events_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/issues/events{/number}","events_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/events","assignees_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/assignees{/user}","branches_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/branches{/branch}","tags_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/tags","blobs_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/statuses/{sha}","languages_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/languages","stargazers_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/stargazers","contributors_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/contributors","subscribers_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/subscribers","subscription_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/subscription","commits_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/contents/{+path}","compare_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/merges","archive_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/downloads","issues_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/issues{/number}","pulls_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/pulls{/number}","milestones_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/milestones{/number}","notifications_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/labels{/name}","releases_url":"https://api.github.com/repos/chenoweth/vim-troll-stopper/releases{/id}","created_at":"2015-10-30T15:01:04Z","updated_at":"2015-10-30T15:01:04Z","pushed_at":"2015-10-30T17:36:00Z","git_url":"git://github.com/chenoweth/vim-troll-stopper.git","ssh_url":"git@github.com:chenoweth/vim-troll-stopper.git","clone_url":"https://github.com/chenoweth/vim-troll-stopper.git","svn_url":"https://github.com/chenoweth/vim-troll-stopper","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vim-utils:master","ref":"master","sha":"8c8191365663e9f6c42849b13b03b9bf20a8a6b0","user":{"login":"vim-utils","id":14864614,"avatar_url":"https://avatars.githubusercontent.com/u/14864614?v=3","gravatar_id":"","url":"https://api.github.com/users/vim-utils","html_url":"https://github.com/vim-utils","followers_url":"https://api.github.com/users/vim-utils/followers","following_url":"https://api.github.com/users/vim-utils/following{/other_user}","gists_url":"https://api.github.com/users/vim-utils/gists{/gist_id}","starred_url":"https://api.github.com/users/vim-utils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vim-utils/subscriptions","organizations_url":"https://api.github.com/users/vim-utils/orgs","repos_url":"https://api.github.com/users/vim-utils/repos","events_url":"https://api.github.com/users/vim-utils/events{/privacy}","received_events_url":"https://api.github.com/users/vim-utils/received_events","type":"Organization","site_admin":false},"repo":{"id":44823259,"name":"vim-troll-stopper","full_name":"vim-utils/vim-troll-stopper","owner":{"login":"vim-utils","id":14864614,"avatar_url":"https://avatars.githubusercontent.com/u/14864614?v=3","gravatar_id":"","url":"https://api.github.com/users/vim-utils","html_url":"https://github.com/vim-utils","followers_url":"https://api.github.com/users/vim-utils/followers","following_url":"https://api.github.com/users/vim-utils/following{/other_user}","gists_url":"https://api.github.com/users/vim-utils/gists{/gist_id}","starred_url":"https://api.github.com/users/vim-utils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vim-utils/subscriptions","organizations_url":"https://api.github.com/users/vim-utils/orgs","repos_url":"https://api.github.com/users/vim-utils/repos","events_url":"https://api.github.com/users/vim-utils/events{/privacy}","received_events_url":"https://api.github.com/users/vim-utils/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vim-utils/vim-troll-stopper","description":"Stop Unicode trolls from messing with your code.","fork":false,"url":"https://api.github.com/repos/vim-utils/vim-troll-stopper","forks_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/forks","keys_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/teams","hooks_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/hooks","issue_events_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/events{/number}","events_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/events","assignees_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/assignees{/user}","branches_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/branches{/branch}","tags_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/tags","blobs_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/statuses/{sha}","languages_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/languages","stargazers_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/stargazers","contributors_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/contributors","subscribers_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/subscribers","subscription_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/subscription","commits_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/contents/{+path}","compare_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/merges","archive_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/downloads","issues_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues{/number}","pulls_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls{/number}","milestones_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/milestones{/number}","notifications_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/labels{/name}","releases_url":"https://api.github.com/repos/vim-utils/vim-troll-stopper/releases{/id}","created_at":"2015-10-23T15:58:31Z","updated_at":"2015-10-30T16:38:32Z","pushed_at":"2015-10-30T18:44:57Z","git_url":"git://github.com/vim-utils/vim-troll-stopper.git","ssh_url":"git@github.com:vim-utils/vim-troll-stopper.git","clone_url":"https://github.com/vim-utils/vim-troll-stopper.git","svn_url":"https://github.com/vim-utils/vim-troll-stopper","homepage":"","size":0,"stargazers_count":104,"watchers_count":104,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":104,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1"},"html":{"href":"https://github.com/vim-utils/vim-troll-stopper/pull/1"},"issue":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/1"},"comments":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/vim-utils/vim-troll-stopper/statuses/56f41af78007e0246debf2ed9bc31b37c2fefaec"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bruno-","id":1042682,"avatar_url":"https://avatars.githubusercontent.com/u/1042682?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-","html_url":"https://github.com/bruno-","followers_url":"https://api.github.com/users/bruno-/followers","following_url":"https://api.github.com/users/bruno-/following{/other_user}","gists_url":"https://api.github.com/users/bruno-/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-/subscriptions","organizations_url":"https://api.github.com/users/bruno-/orgs","repos_url":"https://api.github.com/users/bruno-/repos","events_url":"https://api.github.com/users/bruno-/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}