Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function! pandoc#spell#Init()
  2. if !exists("g:pandoc#spell#enabled")
  3. let g:pandoc#spell#enabled = 1
  4. endif
  5. if !exists("g:pandoc#spell#default_langs")
  6. let g:pandoc#spell#default_langs = []
  7. endif
  8.  
  9. if g:pandoc#spell#enabled == 1
  10. setlocal spell
  11. endif
  12. if g:pandoc#spell#default_langs != []
  13. exe "setlocal spelllang=".join(g:pandoc#spell#default_langs, ',')
  14. endif
  15. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement