/
usr
/
share
/
vim
/
vim80
/
autoload
/
/usr/share/vim/vim80/autoload
mkdir
upload
Name
Size
Mode
Actions
dist/
-
0755
rm
xml/
-
0755
rm
ada.vim
22567
0644
edit
dl
rm
adacomplete.vim
3669
0644
edit
dl
rm
ccomplete.vim
17042
0644
edit
dl
rm
clojurecomplete.vim
8029
0644
edit
dl
rm
context.vim
5462
0644
edit
dl
rm
contextcomplete.vim
656
0644
edit
dl
rm
csscomplete.vim
43193
0644
edit
dl
rm
decada.vim
2998
0644
edit
dl
rm
getscript.vim
24865
0644
edit
dl
rm
gnat.vim
5331
0644
edit
dl
rm
gzip.vim
6413
0644
edit
dl
rm
htmlcomplete.vim
25450
0644
edit
dl
rm
javascriptcomplete.vim
27028
0644
edit
dl
rm
netrw.vim
533921
0644
edit
dl
rm
netrwFileHandlers.vim
10143
0644
edit
dl
rm
netrwSettings.vim
10203
0644
edit
dl
rm
netrw_gitignore.vim
3119
0644
edit
dl
rm
paste.vim
1209
0644
edit
dl
rm
phpcomplete.vim
352352
0644
edit
dl
rm
python3complete.vim
22139
0644
edit
dl
rm
pythoncomplete.vim
22612
0644
edit
dl
rm
README.txt
800
0644
edit
dl
rm
rubycomplete.vim
24361
0644
edit
dl
rm
rust.vim
10463
0644
edit
dl
rm
rustfmt.vim
2990
0644
edit
dl
rm
spellfile.vim
6217
0644
edit
dl
rm
sqlcomplete.vim
39188
0644
edit
dl
rm
syntaxcomplete.vim
31270
0644
edit
dl
rm
tar.vim
22187
0644
edit
dl
rm
tohtml.vim
32077
0644
edit
dl
rm
vimball.vim
24331
0644
edit
dl
rm
xmlcomplete.vim
14939
0644
edit
dl
rm
zip.vim
16092
0644
edit
dl
rm
Edit:
/usr/share/vim/vim80/autoload/netrw_gitignore.vim
(3119B)
" netrw_gitignore#Hide: gitignore-based hiding " Function returns a string of comma separated patterns convenient for " assignment to `g:netrw_list_hide` option. " Function can take additional filenames as arguments, example: " netrw_gitignore#Hide('custom_gitignore1', 'custom_gitignore2') " " Usage examples: " let g:netrw_list_hide = netrw_gitignore#Hide() " let g:netrw_list_hide = netrw_gitignore#Hide() . 'more,hide,patterns' " " Copyright: Copyright (C) 2013 Bruno Sutic {{{1 " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright " notice is copied with it. Like anything else that's free, " netrw_gitignore.vim is provided *as is* and comes with no " warranty of any kind, either expressed or implied. By using " this plugin, you agree that in no event will the copyright " holder be liable for any damages resulting from the use " of this software. function! netrw_gitignore#Hide(...) let additional_files = a:000 let default_files = ['.gitignore', '.git/info/exclude'] " get existing global/system gitignore files let global_gitignore = expand(substitute(system("git config --global core.excludesfile"), '\n', '', 'g')) if global_gitignore !=# '' let default_files = add(default_files, global_gitignore) endif let system_gitignore = expand(substitute(system("git config --system core.excludesfile"), '\n', '', 'g')) if system_gitignore !=# '' let default_files = add(default_files, system_gitignore) endif " append additional files if given as function arguments if additional_files !=# [] let files = extend(default_files, additional_files) else let files = default_files endif " keep only existing/readable files let gitignore_files = [] for file in files if filereadable(file) let gitignore_files = add(gitignore_files, file) endif endfor " get contents of gitignore patterns from those files let gitignore_lines = [] for file in gitignore_files for line in readfile(file) " filter empty lines and comments if line !~# '^#' && line !~# '^$' let gitignore_lines = add(gitignore_lines, line) endif endfor endfor " convert gitignore patterns to Netrw/Vim regex patterns let escaped_lines = [] for line in gitignore_lines let escaped = line let escaped = substitute(escaped, '\*\*', '*', 'g') let escaped = substitute(escaped, '\.', '\\.', 'g') let escaped = substitute(escaped, '\$', '\\$', 'g') let escaped = substitute(escaped, '*', '.*', 'g') " correction: dot, dollar and asterisks chars shouldn't be escaped when " within regex matching groups. let escaped = substitute(escaped, '\(\[[^]]*\)\zs\\\.', '\.', 'g') let escaped = substitute(escaped, '\(\[[^]]*\)\zs\\\$', '\$', 'g') let escaped = substitute(escaped, '\(\[[^]]*\)\zs\.\*', '*', 'g') let escaped_lines = add(escaped_lines, escaped) endfor return join(escaped_lines, ',') endfunction
Save
cmd:
run