diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2023-04-03 14:37:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2023-04-03 14:37:47 +1200 |
commit | f17ee36887a328857aac1f135bc621631eee475c (patch) | |
tree | 37c1826391f326b4bc87aa0fb1a2c11d55bea8d7 | |
parent | Adjust order of profile subfiles creation (diff) | |
download | dotfiles-f17ee36887a328857aac1f135bc621631eee475c.tar.gz dotfiles-f17ee36887a328857aac1f135bc621631eee475c.zip |
Add Vim mapping to switch to French spelling
-rw-r--r-- | vim/vimrc | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1240,13 +1240,6 @@ noremap <Leader>w ounmap <Leader>w sunmap <Leader>w -" This next one just shows option state of the 'formatoptions' affecting how -" text is automatically formatted; it doesn't change its value. - -"" Leader,f shows the current 'formatoptions' at a glance -nnoremap <Leader>f - \ :<C-U>set formatoptions?<CR> - " I often have to switch between US English and NZ English. The latter is " almost exactly the same as UK English in most locales, although we use " dollars rather than pounds. This is mostly so I remember things like @@ -1258,6 +1251,17 @@ nnoremap <Leader>z nnoremap <Leader>u \ :<C-U>set spelllang=en_us<CR> +" I've also been trying to learn French lately (2023-04-03), and having +" a spelling check there is handy for doing my homework. +" +" This mapping used to show the state of 'formatoptions', but I haven't been +" using that nearly as often lately. +" +" <https://sanctum.geek.nz/images/ze-cultured-frenchman.png> +" +nnoremap <Leader>f + \ :<C-U>set spelllang=fr<CR> + " The next mapping is also for toggling an option, but it's more complicated; " it uses a simple plugin of mine called copy_linebreak.vim to manage several " options at once, related to the 'wrap' option that soft-wraps text. |