{"id":13703997,"url":"https://github.com/vim-utils/vim-troll-stopper","last_synced_at":"2026-03-11T22:48:56.211Z","repository":{"id":54400017,"uuid":"44823259","full_name":"vim-utils/vim-troll-stopper","owner":"vim-utils","description":"Stop Unicode trolls from messing with your code.","archived":false,"fork":false,"pushed_at":"2022-10-26T20:46:26.000Z","size":32,"stargazers_count":177,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-03T21:04:27.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vim-utils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-23T15:58:31.000Z","updated_at":"2024-05-01T22:03:39.000Z","dependencies_parsed_at":"2023-01-20T13:01:16.293Z","dependency_job_id":null,"html_url":"https://github.com/vim-utils/vim-troll-stopper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vim-utils%2Fvim-troll-stopper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vim-utils%2Fvim-troll-stopper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vim-utils%2Fvim-troll-stopper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vim-utils%2Fvim-troll-stopper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vim-utils","download_url":"https://codeload.github.com/vim-utils/vim-troll-stopper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224439641,"owners_count":17311491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T21:01:02.748Z","updated_at":"2024-11-13T11:30:36.067Z","avatar_url":"https://github.com/vim-utils.png","language":"Vim Script","funding_links":[],"categories":[":collision: Lowercase Transformation Collisions","Vim Script"],"sub_categories":["One-To-Many Case Mappings"],"readme":"# vim-troll-stopper\n\nBeware, there are (Unicode) trolls out there! Here, take this plugin for\nprotection.\n\n#### Problem\n\nThere are many Unicode characters that are identical or look very\nsimilar to one another. Best known example: semicolon (;) and a greek question\nmark (;).\n\nTrollers (e.g. your coworkers) can exploit this by replacing semicolons with\ngreek question marks in your code (original idea: Peter Ritchie, @peterritchie).\nThere are even [tools](https://github.com/reinderien/mimic) that help you with\nthis and take it to the next level.\n\nAlso, any random code snippet from the internet/stackoverlow can be corrupt.\n\nDemo, a [cannonical \"hello troll\" program](https://github.com/bruno-/hello-trolled):\n\n\n    ⅰnt ⅿain() { рrintf (\"Ηello troll!\\n\"); }\n\nCopy-paste the above code to `hello.c` file and run `$ make hello`. Part of the\noutput:\n\n    hello.c:1:1: error: unknown type name 'ⅰnt'\n    ⅰnt ⅿain() { рrintf (\"Ηello troll!\\n\"); }\n    ^\n\nMaybe you'd even start crying if you didn't know the above code is deceitful.\n\n#### Solution\n\nVim users should know better than falling for these petty tricks.\nThis plugin highlights troll characters with a red background so you are alerted\nsomething is not right.\n\n![hello troll program](hello_troll.png)\n\nAfter you install this plugin, things should just work for any and all\nfiletypes.\n\n### Installation\n\nJust use your favorite vim plugin manager.\n\n### Features\n\n- change highlight to custom color (in `.vimrc`)\n\n        highlight TrollStopper ctermbg = red guibg = #FF0000\n\n- use the `:TrollStop` command to convert invalid characters to regular ones\n\n### License\n\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvim-utils%2Fvim-troll-stopper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvim-utils%2Fvim-troll-stopper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvim-utils%2Fvim-troll-stopper/lists"}