Hello

Just for reference, if you happen to use vim to write documents in
different languages, you can use this upgraded troggle function in
your vimrc (just substitute the spellangs and the Diccionatry names in
the echo statements:

function! MutaSpell()
        if !exists("b:spell")
                let b:spell = 2
        endif
        if (b:spell==2)
                let b:spell = 1
                setlocal spell spelllang=pt
                echo "Portuguese Spell"
        elseif (b:spell==1)
                let b:spell = 0
                setlocal spell spelllang=en
                echo "English Spell"
        else
                let b:spell = 2
                setlocal nospell
                echo "No Spell"
        endif
endfunction

nmap <F4> :call MutaSpell()<CR>
imap <F4> <Esc>:call MutaSpell()<CR>a

To enable/disable spellchecking for certain filetypes, you probably
have to deal with autofiles.

Regards,
Filipe Teixeira
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to