From acb2ed1390d98516d8d1d5fd7ca83ed4d55af948 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 9 May 2019 00:03:10 +1200 Subject: Remove unnecessary g: prefixes to Vim variables --- vim/after/ftplugin/diff.vim | 2 +- vim/after/ftplugin/gitcommit.vim | 2 +- vim/after/ftplugin/help.vim | 2 +- vim/after/ftplugin/html.vim | 2 +- vim/after/ftplugin/mail.vim | 4 ++-- vim/after/ftplugin/make.vim | 2 +- vim/after/ftplugin/markdown.vim | 2 +- vim/after/ftplugin/perl.vim | 2 +- vim/after/ftplugin/php.vim | 2 +- vim/after/ftplugin/sh.vim | 4 ++-- vim/after/ftplugin/vim.vim | 4 ++-- vim/after/indent/html.vim | 2 +- vim/after/plugin/dist.vim | 16 ++++++++-------- vim/after/syntax/readline.vim | 2 +- vim/after/syntax/sh.vim | 4 ++-- 15 files changed, 26 insertions(+), 26 deletions(-) (limited to 'vim/after') diff --git a/vim/after/ftplugin/diff.vim b/vim/after/ftplugin/diff.vim index 5d4ff9ae..f9f6c4b3 100644 --- a/vim/after/ftplugin/diff.vim +++ b/vim/after/ftplugin/diff.vim @@ -1,5 +1,5 @@ " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_diff_maps') +if exists('no_plugin_maps') || exists('no_diff_maps') finish endif diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim index 76a65596..bac342f0 100644 --- a/vim/after/ftplugin/gitcommit.vim +++ b/vim/after/ftplugin/gitcommit.vim @@ -15,7 +15,7 @@ if has('autocmd') && exists('+cursorcolumn') endif " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_gitcommit_maps') +if exists('no_plugin_maps') || exists('no_gitcommit_maps') finish endif diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim index a72dac8e..a588700d 100644 --- a/vim/after/ftplugin/help.vim +++ b/vim/after/ftplugin/help.vim @@ -19,7 +19,7 @@ if &keywordprg !=# ':help' endif " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_help_maps') +if exists('no_plugin_maps') || exists('no_help_maps') finish endif diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index 0dff879f..203e3f46 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -26,7 +26,7 @@ let b:undo_ftplugin .= '|execute ''autocmd! html_timestamp''' \ . '|augroup! html_timestamp' " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_html_maps') +if exists('no_plugin_maps') || exists('no_html_maps') finish endif diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 898fd6a8..457135ef 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -26,13 +26,13 @@ let b:undo_ftplugin .= '|setlocal formatoptions<' " Define what constitutes a 'blank line' for the squeeze_repeat_blanks.vim " plugin, if loaded, to include leading quotes and spaces -if exists('g:loaded_squeeze_repeat_blanks') +if exists('loaded_squeeze_repeat_blanks') let b:squeeze_repeat_blanks_blank = '^[ >]*$' let b:undo_ftplugin .= '|unlet b:squeeze_repeat_blanks_blank' endif " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_mail_maps') +if exists('no_plugin_maps') || exists('no_mail_maps') finish endif diff --git a/vim/after/ftplugin/make.vim b/vim/after/ftplugin/make.vim index 353a0bbf..53a1cc7b 100644 --- a/vim/after/ftplugin/make.vim +++ b/vim/after/ftplugin/make.vim @@ -1,5 +1,5 @@ " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_make_maps') +if exists('no_plugin_maps') || exists('no_make_maps') finish endif diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim index 82fbe9da..b5919b20 100644 --- a/vim/after/ftplugin/markdown.vim +++ b/vim/after/ftplugin/markdown.vim @@ -17,7 +17,7 @@ if has('spell') endif " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_markdown_maps') +if exists('no_plugin_maps') || exists('no_markdown_maps') finish endif diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim index bcee97d6..d1e5dd52 100644 --- a/vim/after/ftplugin/perl.vim +++ b/vim/after/ftplugin/perl.vim @@ -13,7 +13,7 @@ let b:regex_escape_flavor = 'ere' let b:undo_ftplugin .= '|unlet b:regex_escape_flavor' " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_perl_maps') +if exists('no_plugin_maps') || exists('no_perl_maps') finish endif diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim index 801f1c76..58d83c49 100644 --- a/vim/after/ftplugin/php.vim +++ b/vim/after/ftplugin/php.vim @@ -17,7 +17,7 @@ let b:regex_escape_flavor = 'ere' let b:undo_ftplugin .= '|unlet b:regex_escape_flavor' " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_php_maps') +if exists('no_plugin_maps') || exists('no_php_maps') finish endif diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 0fece696..7ded5134 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -25,7 +25,7 @@ let b:undo_ftplugin .= '|unlet b:current_compiler b:sh_check_compiler' " 8.1.257 updated the runtime files to include a fix for this if exists('b:is_posix') \ && (v:version < 800 || v:version == 800 && !has('patch257')) - let g:is_posix = 1 + let is_posix = 1 endif " Queue up undo commands to clear the shell language flags that we set for @@ -34,7 +34,7 @@ endif let b:undo_ftplugin .= '|unlet! b:is_bash b:is_kornshell b:is_posix' " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_sh_maps') +if exists('no_plugin_maps') || exists('no_sh_maps') finish endif diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index 790dd38e..76608691 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -19,7 +19,7 @@ endif " Adjust the match words for the matchit plugin; the default filetype plugin " matches e.g. an opening "function" with the first "return" within, which I " don't like -if exists('g:loaded_matchit') +if exists('loaded_matchit') let b:match_words = \ '\:\,' . \ '\<\(wh\%[ile]\|for\)\>:\,' . @@ -29,7 +29,7 @@ if exists('g:loaded_matchit') endif " Stop here if the user doesn't want ftplugin mappings -if exists('g:no_plugin_maps') || exists('g:no_vim_maps') +if exists('no_plugin_maps') || exists('no_vim_maps') finish endif diff --git a/vim/after/indent/html.vim b/vim/after/indent/html.vim index 0309881c..a7a085fe 100644 --- a/vim/after/indent/html.vim +++ b/vim/after/indent/html.vim @@ -1,5 +1,5 @@ " Clear away the flag we set to indent after paragraphs -unlet g:html_indent_inctags +unlet html_indent_inctags " Don't re-indent lines on right-angle-bracket or enter setlocal indentkeys-=<>>, diff --git a/vim/after/plugin/dist.vim b/vim/after/plugin/dist.vim index f7491d66..70747f8c 100644 --- a/vim/after/plugin/dist.vim +++ b/vim/after/plugin/dist.vim @@ -1,9 +1,9 @@ " Clean up the short-circuiting variables from config/plugins.vim -unlet! g:loaded_getscriptPlugin -unlet! g:loaded_vimballPlugin -unlet! g:loaded_logiPat -unlet! g:loaded_netrwPlugin -unlet! g:loaded_rrhelper -unlet! g:loaded_spellfile_plugin -unlet! g:loaded_tarPlugin -unlet! g:loaded_zipPlugin +unlet! loaded_getscriptPlugin +unlet! loaded_vimballPlugin +unlet! loaded_logiPat +unlet! loaded_netrwPlugin +unlet! loaded_rrhelper +unlet! loaded_spellfile_plugin +unlet! loaded_tarPlugin +unlet! loaded_zipPlugin 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 -- cgit v1.2.3