Skip to main content
edited tags
Link
Justin Ethier
  • 17.2k
  • 9
  • 46
  • 55
Tweeted twitter.com/#!/StackUnix/status/167163275472154624
deleted 10 characters in body; edited title
Source Link
Michael Mrozek
  • 95.8k
  • 40
  • 245
  • 236

vim spell Spell check only in comments in vim

I'm a C/C++ professional programmer who domakes lots of spelling mistakes in commentcomments. I want my Vim to be configured inconfigure vim such a way that the spell-checker look words only inlooks for misspelled words within comments only. Even i'm readyIf necessary I'm willing to giveadd special symbol for start of comment and end ofsymbols around the comment.

Some thing like this... that vim can look for to know where to check, such as:

 int main(){ /*<--C_S This is comment line in main function .. C_S-->*/ } 

so myIf the plugin should be able to fine symbol '/*<--C_S' ( if plug-in needs onlycan work without the '/*'C_S to figure out start of comment, that willsymbols that'd be sufficient for me) andeven better. I want the spell checker should height-lightchecker to highlight any spelling mistakes if there is anyit finds within comments.

Thanks Does this already exist? Or is it easy to write myself?

vim spell check only in comments

I'm a C/C++ professional programmer who do lots of spelling mistakes in comment. I want my Vim to be configured in such a way that spell-checker look words only in comments only. Even i'm ready to give special symbol for start of comment and end of comment.

Some thing like this...

 int main(){ /*<--C_S This is comment line in main function .. C_S-->*/ } 

so my plugin should be able to fine symbol '/*<--C_S' ( if plug-in needs only '/*' to figure out start of comment, that will be sufficient for me) and spell checker should height-light any spelling mistakes if there is any.

Thanks

Spell check comments in vim

I'm a C/C++ professional programmer who makes lots of spelling mistakes in comments. I want to configure vim such that the spell-checker only looks for misspelled words within comments. If necessary I'm willing to add special symbols around the comment that vim can look for to know where to check, such as:

 int main(){ /*<--C_S This is comment line in main function .. C_S-->*/ } 

If the plugin can work without the C_S symbols that'd be even better. I want the spell-checker to highlight any spelling mistakes it finds within comments. Does this already exist? Or is it easy to write myself?

Source Link
Vikas Kumar
  • 419
  • 1
  • 4
  • 3

vim spell check only in comments

I'm a C/C++ professional programmer who do lots of spelling mistakes in comment. I want my Vim to be configured in such a way that spell-checker look words only in comments only. Even i'm ready to give special symbol for start of comment and end of comment.

Some thing like this...

 int main(){ /*<--C_S This is comment line in main function .. C_S-->*/ } 

so my plugin should be able to fine symbol '/*<--C_S' ( if plug-in needs only '/*' to figure out start of comment, that will be sufficient for me) and spell checker should height-light any spelling mistakes if there is any.

Thanks