]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
nvim/ui: actually... don't show bufferline on single buffer
[dotfiles.git] / vim / vimrc
index 658f7ce2a3c49ca99dcfb38ffd77e85640fc6c31..665713258fa0de386dafbc6529e6d499c6bf8ff4 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -701,8 +701,11 @@ function! GitToggle()
   if buflisted(l:status_buffer)
     execute 'bdelete '.l:status_buffer
   else
   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()
   endif
 endfunction
 command! GitToggle :call GitToggle()
@@ -969,8 +972,6 @@ function! SwitchSpell()
 endfunction
 
 nnoremap <silent> coS :call SwitchSpell()<CR>
 endfunction
 
 nnoremap <silent> coS :call SwitchSpell()<CR>
-" fix spelling with first choice
-nnoremap <Leader>f 1z=
 
 " gitdir or home {{{2
 " from derek wyatt:
 
 " gitdir or home {{{2
 " from derek wyatt: