From f17ee36887a328857aac1f135bc621631eee475c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 3 Apr 2023 14:37:47 +1200 Subject: Add Vim mapping to switch to French spelling --- vim/vimrc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index c44d0c46..d32b437b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1240,13 +1240,6 @@ noremap w ounmap w sunmap 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 f - \ :set formatoptions? - " 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 z nnoremap u \ :set spelllang=en_us +" 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. +" +" +" +nnoremap f + \ :set spelllang=fr + " 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. -- cgit v1.2.3