aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/spellcycle/plugin
diff options
context:
space:
mode:
authorTeddy Wing2016-08-28 16:48:10 -0400
committerTeddy Wing2016-08-28 16:48:10 -0400
commit5504e15411b0f682f3415677e65cbf03d6339d50 (patch)
treea08920dd5388f57ada07b1b9917d5f1321ccc16d /bundle/spellcycle/plugin
parentd3c0a50477970bb8bd560d499fcf12305b4a7892 (diff)
downloaddotvim-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.vim11
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