Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a way to configure vim so that it only checks spelling in the text regions of tex files?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

With the vim-latexsuite spell-checking works fine. Since it makes typing latex files a lot easier and faster I can only recommend it to every LaTeX-writing vim user.

share|improve this answer
    
The screenshots show only gvim. Does it offer usefull functionaility with regular vim? –  Bernhard Apr 9 at 7:38
    
@Bernhard I don't see a reason for it not to work in vim. –  Caramdir Apr 9 at 19:20
    
@Caramir: It is specifically showing menus and submenus. Do you have first hand experience with it? –  Bernhard Apr 9 at 21:14
    
@Bernhard You don't need to use the menus. All shortcuts (and the spell-checking enhancements) should work in vim as well. You just need to remember the commands instead of being able to click on them. Personally, I use gvim, but rarely actually use the menus. –  Caramdir Apr 9 at 23:09
add comment

Use the project specific dictionary for latex given at http://www.vim.org/scripts/script.php?script_id=499. It will remove all the keywords from being marked by vim's spellchecker.

share|improve this answer
    
Could you provide a more specific pointer? This seems to be to an old spell checking package (not the built-in one), and I can't locate anything very TeX-specific in the files. –  András Salamon Aug 10 '10 at 17:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.