X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ba31513cbbc303d0188078cc81b6e7b3b1ce0238..6b26cd88e19a47b65fe17a429a70e18c9580d036:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 9fd4ae5..6657132 100644 --- 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 coS :call SwitchSpell() -" fix spelling with first choice -nnoremap f 1z= " gitdir or home {{{2 " from derek wyatt: