Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! pandoc#spell#Init()
- if !exists("g:pandoc#spell#enabled")
- let g:pandoc#spell#enabled = 1
- endif
- if !exists("g:pandoc#spell#default_langs")
- let g:pandoc#spell#default_langs = []
- endif
- if g:pandoc#spell#enabled == 1
- setlocal spell
- endif
- if g:pandoc#spell#default_langs != []
- exe "setlocal spelllang=".join(g:pandoc#spell#default_langs, ',')
- endif
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement