Skip to content

Instantly share code, notes, and snippets.

@mlongval
Created February 26, 2019 21:21
Show Gist options
  • Save mlongval/78206e9c48c2eb123e1af09e807c3ac1 to your computer and use it in GitHub Desktop.
Save mlongval/78206e9c48c2eb123e1af09e807c3ac1 to your computer and use it in GitHub Desktop.
Ultisnips (Vim) snippet to set a vim modeline and set buffer language
# set the document modeline and spelling to english
snippet setenglish "" b
# vim: spell spelllang=en
`!p vim.command("set spelllang=en")`
endsnippet
# set the document modeline and spelling to french
snippet setfrench "" b
# vim: spell spelllang=fr
`!p vim.command("set spelllang=fr")`
endsnippet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment