Skip to content

Instantly share code, notes, and snippets.

@rbtnn
Created July 3, 2013 17:48
Show Gist options
  • Save rbtnn/5920946 to your computer and use it in GitHub Desktop.
Save rbtnn/5920946 to your computer and use it in GitHub Desktop.
autocmd FileType vimshell call vimshell#hook#add('emptycmd', 'my_emptycmd', 'g:my_emptycmd')
function! g:my_emptycmd(args,context)
if empty(a:args)
call vimshell#execute('ls')
return 'git status'
else
return a:args
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment