When the window is split horizontally once and the lower half of the window is split vertically, and the filer is opened with vertical and topleft, the column of the lower left window is extremely narrow and does not return after the filer is closed.
The window width does not narrow drastically when the filer is opened as in other layouts, and returns to the original window width when the filer is closed.
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 23 2024 22:19:02)
macOS 版 - arm64
適用済パッチ: 1-50
Compiled by Homebrew
Huge 版 without GUI. 機能の一覧 有効(+)/無効(-)
+acl -ebcdic +lua -python +title
+arabic +emacs_tags +menu +python3 -toolbar
+autocmd +eval +mksession +quickfix +user_commands
+autochdir +ex_extra +modify_fname +reltime +vartabs
-autoservername +extra_search +mouse +rightleft +vertsplit
-balloon_eval -farsi -mouseshape +ruby +vim9script
+balloon_eval_term +file_in_path +mouse_dec +scrollbind +viminfo
-browse +find_in_path -mouse_gpm +signs +virtualedit
++builtin_terms +float -mouse_jsbterm +smartindent +visual
+byte_offset +folding +mouse_netterm +sodium +visualextra
+channel -footer +mouse_sgr +sound +vreplace
+cindent +fork() -mouse_sysmouse +spell +wildignore
-clientserver +gettext +mouse_urxvt +startuptime +wildmenu
+clipboard -hangul_input +mouse_xterm +statusline +windows
+cmdline_compl +iconv +multi_byte -sun_workshop +writebackup
+cmdline_hist +insert_expand +multi_lang +syntax -X11
+cmdline_info +ipv6 -mzscheme +tag_binary -xattr
+comments +job +netbeans_intg -tag_old_static -xfontset
+conceal +jumplist +num64 -tag_any_white -xim
+cryptv +keymap +packages -tcl -xpm
+cscope +lambda +path_extra +termguicolors -xsmp
+cursorbind +langmap +perl +terminal -xterm_clipboard
+cursorshape +libcall +persistent_undo +terminfo -xterm_save
+dialog_con +linebreak +popupwin +termresponse
+diff +lispindent +postscript +textobjects
+digraphs +listcmds +printer +textprop
-dnd +localmap +profile +timers
システム vimrc: "$VIM/vimrc"
ユーザー vimrc: "$HOME/.vimrc"
第2ユーザー vimrc: "~/.vim/vimrc"
ユーザー exrc: "$HOME/.exrc"
デフォルトファイル: "$VIMRUNTIME/defaults.vim"
省略時の $VIM: "/opt/homebrew/share/vim"
コンパイル: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_
FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
リンク: clang -o vim -lm -lncurses -lsodium -liconv -lintl -framework AppKit -L/opt/homebrew/opt/lu
a/lib -llua5.4 -mmacosx-version-min=14.2 -fstack-protector-strong -L/opt/homebrew/opt/perl/lib/perl
5/5.38/darwin-thread-multi-2level/CORE -lperl -L/opt/homebrew/opt/[email protected]/Frameworks/Python.fra
mework/Versions/3.12/lib/python3.12/config-3.12-darwin -lpython3.12 -framework CoreFoundation -lrub
y.3.3 -L/opt/homebrew/Cellar/ruby/3.3.0/lib
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
システム vimrc: "$VIM/sysinit.vim"
省略時の $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
syntax enable
filetype plugin indent on
set rtp+=~/temp/nvim_minrc/20240220/denops.vim
set rtp+=~/temp/nvim_minrc/20240220/ddu.vim
set rtp+=~/temp/nvim_minrc/20240220/ddu-ui-filer
set rtp+=~/temp/nvim_minrc/20240220/ddu-source-file
set rtp+=~/temp/nvim_minrc/20240220/ddu-column-filename
set rtp+=~/temp/nvim_minrc/20240220/ddu-kind-file
call ddu#custom#patch_local('filer', {
\ 'ui': 'filer',
\ 'sources': [
\ {
\ 'name': 'file',
\ 'params': {},
\ },
\ ],
\ 'sourceOptions': {
\ '_': {
\ 'columns': ['filename'],
\ },
\ },
\ 'kindOptions': {
\ 'file': {
\ 'defaultAction': 'open',
\ },
\ },
\ 'uiParams': {
\ 'filer': {
\ 'winWidth': 40,
\ 'split': 'vertical',
\ 'splitDirection': 'topleft',
\ }
\ },
\ })
autocmd FileType ddu-filer call s:ddu_filer_my_settings()
function! s:ddu_filer_my_settings() abort
nnoremap <buffer><silent> q
\ <Cmd>call ddu#ui#do_action('quit')<CR>
endfunction
nmap <silent> ;d <Cmd>call ddu#start({
\ 'name': 'filer',
\ 'searchPath': expand('%:p'),
\ })<CR>