{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/4495","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/4495/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4495/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/4495/events","html_url":"https://github.com/neovim/neovim/issues/4495","id":143404710,"number":4495,"title":"Allow z= to correct spelling even with :set nospell","user":{"login":"ChrisPenner","id":6439644,"avatar_url":"https://avatars.githubusercontent.com/u/6439644?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisPenner","html_url":"https://github.com/ChrisPenner","followers_url":"https://api.github.com/users/ChrisPenner/followers","following_url":"https://api.github.com/users/ChrisPenner/following{/other_user}","gists_url":"https://api.github.com/users/ChrisPenner/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisPenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisPenner/subscriptions","organizations_url":"https://api.github.com/users/ChrisPenner/orgs","repos_url":"https://api.github.com/users/ChrisPenner/repos","events_url":"https://api.github.com/users/ChrisPenner/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisPenner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/neovim/neovim/labels/usage","name":"usage","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-25T01:44:51Z","updated_at":"2016-03-25T21:07:41Z","closed_at":null,"body":"This is a usability improvement request. I'd love to submit a patch for this when I have time, but I figure I'd get some feedback on the idea to see if people are in favour before implementing it.\r\n\r\nThe basic idea is that when I'm in a buffer and I mis-spell a word, I'd love to type `z=` to correct it, but oftentimes I'll have spell checking turned off (sometimes when doing technical writing all of the highlighted 'errors' get annoying). When spell check is turned off, typing `z=` just shouts an error at me rather than doing what I want. In my opinion the 'right thing' would be to perform the spelling correction anyways, since that's clearly what I intended by invoking the spell correct command. I suggest removing the error and proceeding with the spelling correction regardless of whether spell-check is enabled.\r\n\r\nNote that this is technically a 'breaking change' but I'd be sincerely very surprised if anyone is depending on this behaviour for anything.\r\n\r\n If this is agreed upon I'll take a look at submitting a PR for it. Cheers!\r\n\r\n### Actual behaviour\r\nWhen typing `z=` with `:set nospell` we get the error: `E756: Spell Checking is not enabled`\r\n\r\n### Expected behaviour\r\nThe same as running z= when spell checking IS enabled.\r\n\r\n### Steps to reproduce\r\n`:set nospell` Then type `z=` with the cursor on any word."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/201503119","html_url":"https://github.com/neovim/neovim/issues/4495#issuecomment-201503119","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4495","id":201503119,"user":{"login":"ChrisPenner","id":6439644,"avatar_url":"https://avatars.githubusercontent.com/u/6439644?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisPenner","html_url":"https://github.com/ChrisPenner","followers_url":"https://api.github.com/users/ChrisPenner/followers","following_url":"https://api.github.com/users/ChrisPenner/following{/other_user}","gists_url":"https://api.github.com/users/ChrisPenner/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisPenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisPenner/subscriptions","organizations_url":"https://api.github.com/users/ChrisPenner/orgs","repos_url":"https://api.github.com/users/ChrisPenner/repos","events_url":"https://api.github.com/users/ChrisPenner/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisPenner/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T21:07:41Z","updated_at":"2016-03-25T21:07:41Z","body":"Hrmm, good point. Upon reading up on `:h spell-remarks` it seems that the reason for the current behaviour is that when `:set nospell` is set the spell-check files aren't even loaded in memory (and thus spelling functionality is unavailable), which could still be a good behaviour to maintain.\r\n\r\nFor instance `<c-x><c-s>` and things like `]s` would still require all the spell-checking work to be done (potentially slowing things down on some machines, though likely negligible on a modern machine). For this reason they probably should just raise errors when `:set nospell` is set.\r\n\r\nFor this reason I suggest a new setting: `:set spellhl` and `:set nospellhl` which would allow the user to still enable/disable spell-check as desired, but would also have the option to leave spell-checking enabled and only disable the highlighting of errors. In this case `]s`, `<c-x><c-s>` and `z=` would all still work provided `:set spell` was on, but the highlighting could be hidden with `:set nospellhl`.\r\n\r\nHow does that sound?"}}