-
-
Save tjmw/f3c2c9663cd2a038cbce to your computer and use it in GitHub Desktop.
Whippet (https://github.com/tjmw/whippet) vim configuration
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
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