]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: remove <leader>f mapping for first spell suggestion
[dotfiles.git] / vim / vimrc
index 9fd4ae506530ef6ed32513d0ef5baa4aadf7e18a..665713258fa0de386dafbc6529e6d499c6bf8ff4 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -237,8 +237,6 @@ set linebreak                   " wrap long lines at a character in 'breakat'
 set showbreak=↪                 " show these chars for wrapped lines
 set breakindent                 " preserve indentation in wrapped text
 
-set lazyredraw                  " don't redraw while executing macros
-
 set list                        " show chars defined in 'listchars'
 set listchars=tab:❭\            " list of strings used for list mode
 set listchars+=extends:❯,precedes:❮
@@ -703,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()
@@ -971,8 +972,6 @@ function! SwitchSpell()
 endfunction
 
 nnoremap <silent> coS :call SwitchSpell()<CR>
-" fix spelling with first choice
-nnoremap <Leader>f 1z=
 
 " gitdir or home {{{2
 " from derek wyatt: