Created
June 3, 2014 14:10
-
-
Save thinca/f12bc646a16dcf380766 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call unite#custom#substitute('file', '\$\w\+', '\=eval(submatch(0))', 200) | |
call unite#custom#substitute('file', '[^~.:]\zs/', '*/*', 20) | |
call unite#custom#substitute('file', '^@@', '\=getcwd()."/*"', 2) | |
call unite#custom#substitute('file', '^@', '\=expand("#:p:h")."/*"', 1) | |
call unite#custom#substitute('file', '^\\', '~/*') | |
call unite#custom#substitute('file', '^;v', '~/.vim/*') | |
call unite#custom#substitute('file', '^;a', '~/.vim/autoload/*') | |
call unite#custom#substitute('file', '^;b', '~/.vim/bundle/*') | |
call unite#custom#substitute('file', '^;i', '~/.vim/info/*') | |
call unite#custom#substitute('file', '^;g', '~/.vim/plugin/*') | |
call unite#custom#substitute('file', '^;s', '~/.vim/syntax/*') | |
call unite#custom#substitute('file', '^;r', rtputil#split()) | |
if has('win32') || has('win64') | |
call unite#custom#substitute('file', '^;p', 'C:/Program Files/*') | |
endif | |
if isdirectory(expand('~/work/vim-plugins')) | |
call unite#custom#substitute('file', '^;d', '~/work/vim-plugins/*') | |
endif | |
call unite#custom#substitute('file', '\*\*\+', '*', -1) | |
call unite#custom#substitute('file', '^\~', escape($HOME, '\'), -2) | |
call unite#custom#substitute('file', '\\\@<! ', '\\ ', -20) | |
call unite#custom#substitute('file', '\\ \@!', '/', -30) | |
call unite#custom#substitute('file', ';', ' ', -31) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment