[英]how to restore the original size after using the NERDTree Menu in Vim?
我使用 NERDTree 作為文件瀏覽器,在使用它的菜單后,Vim 沒有恢復到原來的大小,見下面的截圖。
僅當我調整終端 window 的大小時,編輯器才恢復正常。
我的系統配置
NERD樹配置
nmap <Leader>nt:NERDTreeFind<CR>
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let g:NERDTreeIgnore = ['^node_modules$']
我有同樣的問題,我已經刪除了 vim v9 並從源代碼安裝了最后一個 v8,它工作正常,我不知道底部窗格的 9 版本 vim 中發生了什么。 但我觀察到遠程服務器上的 vim v8 運行良好。
UPD:我在 NERDTree 回購中發現了問題: https://github.com/preservim/nerdtree/issues/1321
您可以將cmdheight 設置為2 來解決問題。 將以下行添加到 your.vimrc
set cmdheight=2
這個問題仍然相關。 要恢復 window 大小,您可以嘗試以下快捷方式:
Ctrl+w _
Ctrl+w |
Ctrl+w =
資料來源: https://vim.fandom.com/wiki/Resize_splits_more_quickly
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.