Created
July 3, 2013 17:48
-
-
Save rbtnn/5920946 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
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