From 5504e15411b0f682f3415677e65cbf03d6339d50 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 28 Aug 2016 16:48:10 -0400 Subject: First version of 'spellcycle' plugin A new plugin that cycles through a list of languages to use when spell checking. Using a couple of mappings, we can quickly change the `spelllang` to the language we want to write or read in. Languages are currently set to English and French, since those are the two that I use. The mappings are bound to `[l` and `]l` (in unimpaired.vim style) since those didn't seem to be used by anything. --- bundle/spellcycle/plugin/spellcycle.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bundle/spellcycle/plugin/spellcycle.vim (limited to 'bundle/spellcycle/plugin') diff --git a/bundle/spellcycle/plugin/spellcycle.vim b/bundle/spellcycle/plugin/spellcycle.vim new file mode 100644 index 0000000..9ae3bfe --- /dev/null +++ b/bundle/spellcycle/plugin/spellcycle.vim @@ -0,0 +1,11 @@ +if exists('g:loaded_spellcycle') + finish +endif +let g:loaded_spellcycle = 1 + + +nnoremap spellcycle_Left :call spellcycle#Cycle(-1) +nnoremap spellcycle_Right :call spellcycle#Cycle(1) + +nmap [l spellcycle_Left +nmap ]l spellcycle_Right -- cgit v1.2.3