Le mardi 24 mars 2015 16:09:09 UTC+1, Charles Campbell a écrit :
> Peng Yu wrote:
> >> Modify g:zipPlugin_ext to hold whichever suffices you want zip.vim to handle and put it into your .vimrc. This change will take effect only in subsequent instances of vim, not a currently running one.
> > What is the syntax for multiple suffixes? Should it be something like this?
> >
> > let g:zipPlugin_ext = '.gz,.zip'
> >
> Its set up in plugin/zipPlugin.vim (by default): let g:zipPlugin_ext=
> '*.zip,*.jar,*.xpi,*.ja,*.war,*.ear,*.celzip,*.oxt,*.kmz,*.wsz,*.xap,*.docx,*.docm,*.dotx,*.dotm,*.potx,*.potm,*.ppsx,*.ppsm,*.pptx,*.pptm,*.ppam,*.sldx,*.thmx,*.xlam,*.xlsx,*.xlsm,*.xlsb,*.xltx,*.xltm,*.xlam,*.crtx,*.vdw,*.glox,*.gcsx,*.gqsx'
>
> Sorry about not getting back to you sooner; I've been out a lot lately.
>
> Regards,
> Chip Campbell
If zipPlugin set the autocmd
exe "au BufReadCmd ".g:zipPlugin_ext.' call zip#Browse(expand("<amatch>"))'
after .vimrc is read, then a command that only excludes triggering zipPlugin for *.docx files, such as
let g:zipPlugin_ext = substitute(g:zipPlugin_ext, '\*\.docx', '', '')
could work, too.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment