31 lines
998 B
Markdown
31 lines
998 B
Markdown
---
|
|
title: "vim spelling"
|
|
date: 2020-03-05T10:41:42+01:00
|
|
draft: false
|
|
snippet_types: ["vim"]
|
|
---
|
|
|
|
Exampled by the errors in my blog posts, spelling is not my strength. Never was. Always felt focusing on spelling limited my vocabulary. So I rely on tech. From the first red squiggly line in MS Word to now.
|
|
|
|
Web UI base tools:
|
|
|
|
- [Grammerly](https://app.grammarly.com/)
|
|
- [Language tool](https://languagetool.org/)
|
|
|
|
The problem with these is I have to leave the terminal. Tech Motto: Never leave the terminal. So I use vim's built-in. It is surprisingly good.
|
|
|
|
**In action:**
|
|
|
|
{{< asciicast-with-caption id="307766" title="demo using vim's builtin spell check" >}}
|
|
|
|
**Config:**
|
|
|
|
I write in both English and German so I have key maps for both
|
|
|
|
```vim script
|
|
nnoremap <leader>se :setlocal spell spelllang=en<CR>
|
|
nnoremap <leader>sd :setlocal spell spelllang=de<CR>
|
|
nnoremap <leader>sn :setlocal nospell<CR>
|
|
```
|
|
|
|
Other spelling and writing tools: https://www.are.na/travis-shears/writing-bqnwud28d50
|