summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-03-02 01:03:15 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-03-02 01:03:15 +0100
commite558a218c6469c37cb17e17fd6789787090e6933 (patch)
tree6d9f9e90e624a67335418e1bbdec0c62e02db65f /ftplugin
parent16774887a3fe26a09326585f871748ddf158905e (diff)
downloadvim-polyglot-e558a218c6469c37cb17e17fd6789787090e6933.tar.gz
vim-polyglot-e558a218c6469c37cb17e17fd6789787090e6933.zip
Add razor syntax, fixes #450
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/razor.vim30
1 files changed, 30 insertions, 0 deletions
diff --git a/ftplugin/razor.vim b/ftplugin/razor.vim
new file mode 100644
index 00000000..76348dd0
--- /dev/null
+++ b/ftplugin/razor.vim
@@ -0,0 +1,30 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'razor') == -1
+
+" Vim filetype plugin
+" Language: LessCSS
+" Author: Tim Pope <vimNOSPAM@tpope.org>
+" Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de>
+" Last Change: 2011 Sep 30
+
+" Only do this when not done yet for this buffer
+:UltiSnipsAddFiletypes razor.html
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+"let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
+
+"setlocal iskeyword+=-
+"setlocal commentstring=//\ %s
+"setlocal define=^\\s*\\%(@mixin\\\|=\\)
+"setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
+"setlocal omnifunc=csscomplete#CompleteCSS
+"setlocal suffixesadd=.less
+
+"let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
+
+" vim:set sw=2:
+
+endif