Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created January 23, 2019 14:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daGrevis/c167283bb4f5d2cba12ad6d5ed36b720 to your computer and use it in GitHub Desktop.
Save daGrevis/c167283bb4f5d2cba12ad6d5ed36b720 to your computer and use it in GitHub Desktop.
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