Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Last active December 12, 2015 00:18
Show Gist options
  • Save supermomonga/4682541 to your computer and use it in GitHub Desktop.
Save supermomonga/4682541 to your computer and use it in GitHub Desktop.
" 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 "emptycmd "'
" emptycmd
endfunction
function! g:my_vimshell_notfound(args, context)
return 'echo "notfound "'
" echo "notfound "emptycmd
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment