【发布时间】:2010-12-14 19:07:51
【问题描述】:
在使用拆分窗口时,我经常使用该命令将所有窗口的大小相等。但是,我还在垂直窗口中使用迷你缓冲区资源管理器,我想保持最大宽度为 25。有没有什么办法可以配置 vim,以便迷你缓冲区资源管理器窗口不会重新调整大小或保持不变最大宽度为 25?
谢谢!
【问题讨论】:
在使用拆分窗口时,我经常使用该命令将所有窗口的大小相等。但是,我还在垂直窗口中使用迷你缓冲区资源管理器,我想保持最大宽度为 25。有没有什么办法可以配置 vim,以便迷你缓冲区资源管理器窗口不会重新调整大小或保持不变最大宽度为 25?
谢谢!
【问题讨论】:
你可以的
:set winfixwidth
在您希望保持不变的窗口中。
见
:help winfixheight
:help winfixwidth
【讨论】:
这里是minibufexpl.vim的一部分:
" If you would like a vertical explorer you can assign the column
" width (in characters) you want for your explorer window with the
" following .vimrc variable (this was introduced in 6.3.0):
"
" let g:miniBufExplVSplit = 20 " column width in chars
"
" IN HORIZONTAL MODE:
" It is now (as of 6.1.1) possible to set a maximum height for
" the -MiniBufExplorer- window. You can set the max height by
" letting the following variable in your .vimrc:
"
" let g:miniBufExplMaxSize = <max lines: defualt 0>
"
" setting this to 0 will mean the window gets as big as
" needed to fit all your buffers.
这应该有助于解决您的问题。
【讨论】: