-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查找时提示winlayout未定义 #311
Comments
使用的vim版本太老,没有winlayout。更新使用8.2版本后解决。 |
@pidansolo 这是个问题。按照设计sync模式需要支持Vim 7.4。 |
|
Try to install ctrlsf v2.1.2. It's worked for me. |
I've ran into this error when I was using Vim 8.1,
autoload/ctrlsf/win.vim
func! ctrlsf#win#BackupAllWinSize()
if !(exists('g:ctrlsf_win_compatibility'))
" New Way
if !exists("t:ctrlsf_winrestcmd")
let t:ctrlsf_winrestcmd = []
endif
call add(t:ctrlsf_winrestcmd, join(s:BuildResizeCmd(winlayout(), 0, 0), '|'))
else
" Old Way
let nr = 1
while winbufnr(nr) != -1
if getwinvar(nr, '&winfixwidth') || getwinvar(nr, '&winfixheight')
if type(getwinvar(nr, 'ctrlsf_winwidth_bak')) != 3
call setwinvar(nr, 'ctrlsf_winwidth_bak', [])
endif
call add(getwinvar(nr, 'ctrlsf_winwidth_bak'), winwidth(nr))
if type(getwinvar(nr, 'ctrlsf_winheight_bak')) != 3
call setwinvar(nr, 'ctrlsf_winheight_bak', [])
endif
call add(getwinvar(nr, 'ctrlsf_winheight_bak'), winheight(nr))
endif
let nr += 1
endwh
endif
endf
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: