aboutsummaryrefslogtreecommitdiff
path: root/vim/after/syntax
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:03:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:03:10 +1200
commitacb2ed1390d98516d8d1d5fd7ca83ed4d55af948 (patch)
tree0b2e1b11e12b4090860cf52560f2a2eb457b42dd /vim/after/syntax
parentRemap g& to preserve substitution flags (diff)
downloaddotfiles-acb2ed1390d98516d8d1d5fd7ca83ed4d55af948.tar.gz
dotfiles-acb2ed1390d98516d8d1d5fd7ca83ed4d55af948.zip
Remove unnecessary g: prefixes to Vim variables
Diffstat (limited to 'vim/after/syntax')
-rw-r--r--vim/after/syntax/readline.vim2
-rw-r--r--vim/after/syntax/sh.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/vim/after/syntax/readline.vim b/vim/after/syntax/readline.vim
index 050b2dc1..215cedc8 100644
--- a/vim/after/syntax/readline.vim
+++ b/vim/after/syntax/readline.vim
@@ -1,3 +1,3 @@
" Clear away the flag we set in syntax/readline.vim to include Bash commands
" in the highlight list
-unlet! g:readline_has_bash
+unlet! readline_has_bash
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim
index 95ec5546..797bdab9 100644
--- a/vim/after/syntax/sh.vim
+++ b/vim/after/syntax/sh.vim
@@ -1,7 +1,7 @@
" Remove g:is_posix if we resorted to it in order to get correct POSIX sh
" highlighting with older Vim runtime files
-if exists('g:is_posix')
- unlet! g:is_posix g:is_kornshell
+if exists('is_posix')
+ unlet! is_posix is_kornshell
endif
" If we know we have another shell type, clear away the others completely, now