Last active
December 12, 2015 00:18
-
-
Save supermomonga/4682352 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
" not call add() but set() for debug | |
autocmd FileType vimshell call vimshell#hook#set('emptycmd', ['g:my_vimshell_emptycmd']) | |
autocmd FileType vimshell call vimshell#hook#set('notfound', ['g:my_vimshell_notfound']) | |
function! g:my_vimshell_emptycmd(args, context) | |
return 'echo 1' | |
" 1 | |
endfunction | |
function! g:my_vimshell_notfound(args, context) | |
return 'echo 2' | |
" echo 2 | |
" vimproc#get_command_name: File "mogecommand" is not found. | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment