Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable spell-check with Grammarous by default? #35

Open
HarishVangala opened this issue Feb 28, 2017 · 3 comments
Open

How to enable spell-check with Grammarous by default? #35

HarishVangala opened this issue Feb 28, 2017 · 3 comments

Comments

@HarishVangala
Copy link

HarishVangala commented Feb 28, 2017

LanguageTool is powerful enough to handle grammar and spelling simultaneously.

However, I find spell-check disabled by default in vim-grammarous. All that I find in documentation is this:
how-do-i-use-this-plugin-with-vims-spelllang
This looks only like an option for the spell check which should first be enabled.

How to enable spell check by default?

Update:
I find this option:
let g:grammarous#enable_spell_check=1, and it works! But the annoying problem is that

  • Navigation doesn't include spelling-errors
  • No suggestions are shown for spelling errors
  • There is no way I can distinguish between errors of spelling & grammar (for e.g. like the traditional Green and Red zig-zag lines)

Another issue: Can I have the quickfix-window open all the time? Its annoying to see it getting open and closed. I would like to close it manually once everything is fixed!

@rhysd
Copy link
Owner

rhysd commented Feb 28, 2017

Navigation can't consider Vim's spell check because plugin can't obtain the place of spell error detected by Vim's spell check. I guess LanguageTool has some spell check rules. Please try to use them instead of Vim's spell check.

@HarishVangala
Copy link
Author

HarishVangala commented Feb 28, 2017

@rhysd Oh thanks, I got it. Using the below combination works perfectly with spell-check.

let g:grammarous#use_vim_spelllang = 0
let g:grammarous#enable_spell_check = 1

Could you also answer the remaining two questions?

  1. Can I have the quick-fix window open all the time? (until :GrammarousReset)
    It is a bit annoying that the window pops and closes by itself several times.
  2. How can I distinguish between a spell-error and a grammar-error? Can I change the color?

You can then go ahead closing this issue.

@amandeepgautam
Copy link

@rhysd Please update the documentation: https://github.com/rhysd/vim-grammarous#how-do-i-use-this-plugin-with-vims-spelllang

The above solution is much more intuitive to use than the one suggested in the FAQ (I could never figure out how to use it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants