aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/wildignore.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/wildignore.vim')
-rw-r--r--vim/plugin/wildignore.vim48
1 files changed, 24 insertions, 24 deletions
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