Swap ZoomWin to ZoomWinTab
ZoomWin functions, but with errors on saving window state in neovim. Replacing with ZoomWinTab resolves these errors at a minor cost: a new tab is opened with the buffer. I do not currently use tabs, but this has the potential to impact future development
This commit is contained in:
parent
47a3bf1dfb
commit
3398d0d657
1 changed files with 4 additions and 14 deletions
18
vimrc
18
vimrc
|
@ -7,7 +7,6 @@ Plug 'joshdick/onedark.vim'
|
||||||
|
|
||||||
" keepers
|
" keepers
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'atomaka/ZoomWin' " vim-scripts not up to date
|
|
||||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'ntpeters/vim-better-whitespace'
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
|
@ -17,6 +16,7 @@ Plug 'tpope/vim-eunuch' " move files
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'tpope/vim-git'
|
Plug 'tpope/vim-git'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
|
Plug 'troydm/zoomwintab.vim'
|
||||||
|
|
||||||
" languages
|
" languages
|
||||||
Plug 'posva/vim-vue'
|
Plug 'posva/vim-vue'
|
||||||
|
@ -109,7 +109,8 @@ vnoremap < <gv
|
||||||
nnoremap <C-p> :Files<CR>
|
nnoremap <C-p> :Files<CR>
|
||||||
|
|
||||||
" ZoomWin
|
" ZoomWin
|
||||||
nmap <c-w>z <Plug>ZoomWin
|
nnoremap <C-w>z :ZoomWinTabToggle<CR>
|
||||||
|
nnoremap <C-w><C-z> :ZoomWinTabToggle<CR>
|
||||||
|
|
||||||
" LEADERS
|
" LEADERS
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
|
@ -159,19 +160,8 @@ syntax enable
|
||||||
highlight ExtraWhitespace ctermbg=196
|
highlight ExtraWhitespace ctermbg=196
|
||||||
|
|
||||||
" ZoomWin
|
" ZoomWin
|
||||||
function! ZWStatline(state)
|
|
||||||
if a:state
|
|
||||||
let t:zoomed = 1
|
|
||||||
else
|
|
||||||
let t:zoomed = 0
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
if !exists("g:ZoomWin_funcref")
|
|
||||||
let g:ZoomWin_funcref= function("ZWStatline")
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! ZoomState()
|
function! ZoomState()
|
||||||
if exists('t:zoomed') && t:zoomed
|
if exists('t:zoomwintab')
|
||||||
return 'Z'
|
return 'Z'
|
||||||
else
|
else
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue