Hello 
Warning: this is the first time I’ve used Vim, so please be indulgent if my configuration looks basic or a bit odd. Thank you.
I use Geany to write C code and I’m very happy with it, but I ran into a task that Geany can’t handle: correcting spelling mistakes in comments and string literals. I tried some shell scripts, but they quickly became too complicated for me, so I thought I should find a tool that can do this properly — ideally in an interactive way.
That’s how I ended up with Vim + Hunspell.
Normally I work a lot with the mouse (around 80%), both in text editors and in CAD work, but for spell checking I find a keyboard-driven interface faster and more productive.
Attached file my `.vimrc` config for spell checking, ChatGPT5.2 generated ( 2 iterations ) + slightly modified by me.
My workflow is :
Warning: this is the first time I’ve used Vim, so please be indulgent if my configuration looks basic or a bit odd. Thank you.
I use Geany to write C code and I’m very happy with it, but I ran into a task that Geany can’t handle: correcting spelling mistakes in comments and string literals. I tried some shell scripts, but they quickly became too complicated for me, so I thought I should find a tool that can do this properly — ideally in an interactive way.
That’s how I ended up with Vim + Hunspell.
Normally I work a lot with the mouse (around 80%), both in text editors and in CAD work, but for spell checking I find a keyboard-driven interface faster and more productive.
Attached file my `.vimrc` config for spell checking, ChatGPT5.2 generated ( 2 iterations ) + slightly modified by me.
My workflow is :
- go to target directory
- run vim
- :args **/*.c **/.h to open all needed files
- F9 to display bottom window with buffers list
- ctrl-w + UP key go to code window
- F5 toggle spell check on
- :wqa when work is done
- F2 :bnext next buffer
- shift-F2 :bprev previous buffer
- F3 [s previous misspelled word
- F4 ]s next misspelled word
- F10 suggest word
- F11 add to dictionary
- F12 mark wrong
- numpad select suggested word
