Skip to content

Instantly share code, notes, and snippets.

@thinca
Created June 3, 2014 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinca/f12bc646a16dcf380766 to your computer and use it in GitHub Desktop.
Save thinca/f12bc646a16dcf380766 to your computer and use it in GitHub Desktop.
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