aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2023-04-03 14:37:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2023-04-03 14:37:47 +1200
commitf17ee36887a328857aac1f135bc621631eee475c (patch)
tree37c1826391f326b4bc87aa0fb1a2c11d55bea8d7 /vim
parentAdjust order of profile subfiles creation (diff)
downloaddotfiles-f17ee36887a328857aac1f135bc621631eee475c.tar.gz
dotfiles-f17ee36887a328857aac1f135bc621631eee475c.zip
Add Vim mapping to switch to French spelling
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc18
1 files changed, 11 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index c44d0c46..d32b437b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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.