X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d5cea7189cb0e08b64762796b465cfb0873ebcea..6b26cd88e19a47b65fe17a429a70e18c9580d036:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 658f7ce..6657132 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -701,8 +701,11 @@ function! GitToggle() if buflisted(l:status_buffer) execute 'bdelete '.l:status_buffer else - Git - 16wincmd_ + execute 'Git' + if !empty(FugitiveGitDir()) + " only resize status if Git was sucessful + 16wincmd_ + endif endif endfunction command! GitToggle :call GitToggle() @@ -969,8 +972,6 @@ function! SwitchSpell() endfunction nnoremap coS :call SwitchSpell() -" fix spelling with first choice -nnoremap f 1z= " gitdir or home {{{2 " from derek wyatt: