commit 61a006f4a5521f38632040cfd2e20705dd77b451
parent b7da1dd9c5ca53df867efb77c5e43f667d57ee14
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 23 Apr 2022 15:10:07 +0200
vim: fix compiler variable
Diffstat:
7 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/vim/compiler/groff.vim b/vim/compiler/groff.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "groff"
+let g:current_compiler = "groff"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/markdown.vim b/vim/compiler/markdown.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "markdown"
+let g:current_compiler = "markdown"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/plantuml.vim b/vim/compiler/plantuml.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "plantuml"
+let g:current_compiler = "plantuml"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/proselint.vim b/vim/compiler/proselint.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "proselint"
+let g:current_compiler = "proselint"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/scss.vim b/vim/compiler/scss.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "scss"
+let g:current_compiler = "scss"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/sh.vim b/vim/compiler/sh.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "sh"
+let g:current_compiler = "sh"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
diff --git a/vim/compiler/typely.vim b/vim/compiler/typely.vim
@@ -1,7 +1,7 @@
-if exists("current_compiler")
+if exists("g:current_compiler")
finish
endif
-let current_compiler = "typely"
+let g:current_compiler = "typely"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif