diff options
author | Teddy Wing | 2016-08-28 16:48:10 -0400 |
---|---|---|
committer | Teddy Wing | 2016-08-28 16:48:10 -0400 |
commit | 5504e15411b0f682f3415677e65cbf03d6339d50 (patch) | |
tree | a08920dd5388f57ada07b1b9917d5f1321ccc16d /bundle/spellcycle/plugin | |
parent | d3c0a50477970bb8bd560d499fcf12305b4a7892 (diff) | |
download | dotvim-5504e15411b0f682f3415677e65cbf03d6339d50.tar.bz2 |
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.
Diffstat (limited to 'bundle/spellcycle/plugin')
-rw-r--r-- | bundle/spellcycle/plugin/spellcycle.vim | 11 |
1 files changed, 11 insertions, 0 deletions
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 <silent> <Plug>spellcycle_Left :<c-u>call spellcycle#Cycle(-1)<cr> +nnoremap <silent> <Plug>spellcycle_Right :<c-u>call spellcycle#Cycle(1)<cr> + +nmap [l <Plug>spellcycle_Left +nmap ]l <Plug>spellcycle_Right |