Created
December 8, 2016 20:04
-
-
Save tanaka51/0c4b3943e5c230c5a9467c5b46ea309d to your computer and use it in GitHub Desktop.
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
"" CtrlP with current filename | |
command! -nargs=0 CtrlPSwitcher call s:ctrlp_switcher() | |
function! s:ctrlp_switcher() | |
try | |
let default_input_save = get(g:, 'ctrlp_default_input', '') | |
let g:ctrlp_default_input = expand('%:t:r') | |
call ctrlp#init(g:ctrlp_builtins) | |
finally | |
if exists('default_input_save') | |
let g:ctrlp_default_input = default_input_save | |
endif | |
endtry | |
endfunction! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment