diff options
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/dist.vim | 16 | ||||
-rw-r--r-- | vim/plugin/wildignore.vim | 48 |
2 files changed, 32 insertions, 32 deletions
diff --git a/vim/plugin/dist.vim b/vim/plugin/dist.vim index eb814387..7c745e4f 100644 --- a/vim/plugin/dist.vim +++ b/vim/plugin/dist.vim @@ -1,15 +1,15 @@ " Skip loading some plugins: " I manage plugins myself with Git and a Makefile -let g:loaded_getscriptPlugin = 1 -let g:loaded_vimballPlugin = 1 +let loaded_getscriptPlugin = 1 +let loaded_vimballPlugin = 1 " Vim is the wrong tool for reading archives -let g:loaded_tarPlugin = 1 -let g:loaded_zipPlugin = 1 +let loaded_tarPlugin = 1 +let loaded_zipPlugin = 1 " I prefer filtering text with Unix tools -let g:loaded_logiPat = 1 +let loaded_logiPat = 1 " The shell, tab completion, and 'wildmenu' are good enough -let g:loaded_netrwPlugin = 1 +let loaded_netrwPlugin = 1 " I don't use Vim servers -let g:loaded_rrhelper = 1 +let loaded_rrhelper = 1 " I don't need extra spelling files -let g:loaded_spellfile_plugin = 1 +let loaded_spellfile_plugin = 1 diff --git a/vim/plugin/wildignore.vim b/vim/plugin/wildignore.vim index a08e0251..36a8f492 100644 --- a/vim/plugin/wildignore.vim +++ b/vim/plugin/wildignore.vim @@ -4,19 +4,19 @@ if &compatible || v:version < 700 || !has('wildignore') finish endif -if exists('g:loaded_wildmenu') +if exists('loaded_wildmenu') finish endif -let g:loaded_wildmenu = 1 +let loaded_wildmenu = 1 " Helper function for local scope function! s:Wildignore() abort " New empty array - let l:ignores = [] + let ignores = [] " Archives - let l:ignores += [ + let ignores += [ \ '*.7z' \,'*.bz2' \,'*.gz' @@ -28,13 +28,13 @@ function! s:Wildignore() abort \ ] " Bytecode - let l:ignores += [ + let ignores += [ \ '*.class' \,'*.pyc' \ ] " Databases - let l:ignores += [ + let ignores += [ \ '*.db' \,'*.dbm' \,'*.sdbm' @@ -42,7 +42,7 @@ function! s:Wildignore() abort \ ] " Disk - let l:ignores += [ + let ignores += [ \ '*.adf' \,'*.bin' \,'*.hdf' @@ -50,7 +50,7 @@ function! s:Wildignore() abort \ ] " Documents - let l:ignores += [ + let ignores += [ \ '*.docx' \,'*.djvu' \,'*.odp' @@ -63,23 +63,23 @@ function! s:Wildignore() abort \ ] " Encrypted - let l:ignores += [ + let ignores += [ \ '*.asc' \,'*.gpg' \ ] " Executables - let l:ignores += [ + let ignores += [ \ '*.exe' \ ] " Fonts - let l:ignores += [ + let ignores += [ \ '*.ttf' \ ] " Images - let l:ignores += [ + let ignores += [ \ '*.bmp' \,'*.gd2' \,'*.gif' @@ -96,18 +96,18 @@ function! s:Wildignore() abort \ ] " Incomplete - let l:ignores += [ + let ignores += [ \ '*.filepart' \ ] " Objects - let l:ignores += [ + let ignores += [ \ '*.a' \,'*.o' \ ] " Sound - let l:ignores += [ + let ignores += [ \ '*.au' \,'*.aup' \,'*.flac' @@ -121,24 +121,24 @@ function! s:Wildignore() abort \ ] " System-specific - let l:ignores += [ + let ignores += [ \ '.DS_Store' \ ] " Translation - let l:ignores += [ + let ignores += [ \ '*.gmo' \ ] " Version control - let l:ignores += [ + let ignores += [ \ '.git' \,'.hg' \,'.svn' \ ] " Video - let l:ignores += [ + let ignores += [ \ '*.avi' \,'*.gifv' \,'*.mp4' @@ -149,7 +149,7 @@ function! s:Wildignore() abort \ ] " Vim - let l:ignores += [ + let ignores += [ \ '*~' \,'*.swp' \ ] @@ -157,15 +157,15 @@ function! s:Wildignore() abort " If on a system where case matters for filenames, for any that had " lowercase letters, add their uppercase analogues if has('fname_case') - for l:ignore in l:ignores - if l:ignore =~# '\l' - call add(l:ignores, toupper(l:ignore)) + for ignore in ignores + if ignore =~# '\l' + call add(ignores, toupper(ignore)) endif endfor endif " Return the completed setting - return join(l:ignores, ',') + return join(ignores, ',') endfunction |