Skip to content

Instantly share code, notes, and snippets.

@tjmw
Forked from cloud8421/gist:5510765
Last active August 29, 2015 14:11
Show Gist options
  • Save tjmw/f3c2c9663cd2a038cbce to your computer and use it in GitHub Desktop.
Save tjmw/f3c2c9663cd2a038cbce to your computer and use it in GitHub Desktop.
Whippet (https://github.com/tjmw/whippet) vim configuration
let g:whippet_path = '/path/to/whippet'
let g:ctrlp_use_caching = 0
let g:whippet_exclude_paths = ".git,.svn,tmp,log,.bundle"
let g:ctrlp_user_command = g:whippet_path." --exclude=".g:whippet_exclude_paths
let g:ctrlp_match_func = { 'match': 'Whippet' }
function Whippet(items, str, limit, mmode, ispath, crfile, regex)
let cmd = g:whippet_path.' --exclude='.g:whippet_exclude_paths
if (strlen(a:str) > 0)
let cmd = cmd.' --query='.a:str
endif
return split(system(cmd), "\n")[0:10]
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment