Created
January 23, 2019 14:52
-
-
Save daGrevis/c167283bb4f5d2cba12ad6d5ed36b720 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:ctrlp_map = '' | |
function! CtrlP() | |
if (getcwd() == $HOME) | |
echo "Won't run in ~" | |
return | |
endif | |
if (getcwd() == '/') | |
echo "Won't run in /" | |
return | |
endif | |
CtrlP | |
endfunction | |
nnoremap <C-p> :call CtrlP()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment