Created
February 26, 2019 21:21
-
-
Save mlongval/78206e9c48c2eb123e1af09e807c3ac1 to your computer and use it in GitHub Desktop.
Ultisnips (Vim) snippet to set a vim modeline and set buffer language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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