Skip to content

Vim closes automatically when try to open a directory #269

@dgdavid

Description

@dgdavid

Environment

  • OS:
    • Linux
    • macOS
    • Windows
    • FreeBSD
  • Vim:
    • Terminal Vim
    • GVim
    • NeoVim

:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jul 26 2017 19:10:24)
Included patches: 1-503, 505-642
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             +cmdline_compl   +digraphs        +folding         -langmap         -mouseshape      -mzscheme        -python3         +syntax          -toolbar         +writebackup
-arabic          +cmdline_hist    -dnd             -footer          +libcall         -mouse_dec       +netbeans_intg   +quickfix        +tag_binary      +user_commands   -X11
+autocmd         +cmdline_info    -ebcdic          +fork()          +linebreak       -mouse_gpm       +num64           +reltime         +tag_old_static  +vertsplit       -xfontset
-balloon_eval    +comments        -emacs_tags      -gettext         +lispindent      -mouse_jsbterm   +packages        -rightleft       -tag_any_white   +virtualedit     -xim
-browse          -conceal         +eval            -hangul_input    +listcmds        -mouse_netterm   +path_extra      +ruby/dyn        -tcl             +visual          -xpm
+builtin_terms   +cryptv          +ex_extra        +iconv           +localmap        -mouse_sgr       -perl            +scrollbind      -termguicolors   +visualextra     -xsmp
+byte_offset     +cscope          +extra_search    +insert_expand   -lua             -mouse_sysmouse  +persistent_undo +signs           +terminfo        +viminfo         -xterm_clipboard
+channel         +cursorbind      -farsi           +job             +menu            -mouse_urxvt     +postscript      +smartindent     +termresponse    +vreplace        -xterm_save
+cindent         +cursorshape     +file_in_path    +jumplist        +mksession       +mouse_xterm     +printer         +startuptime     +textobjects     +wildignore
-clientserver    +dialog_con      +find_in_path    -keymap          +modify_fname    +multi_byte      -profile         +statusline      +timers          +wildmenu
-clipboard       +diff            +float           +lambda          +mouse           +multi_lang      +python/dyn      -sun_workshop    +title           +windows
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

Problem Description

After commit c66930e, vim closes automatically when try to open a directory

If line

autocmd BufEnter * if 0 == len(filter(range(1, winnr('$')), 'empty(getbufvar(winbufnr(v:val), "&bt"))')) | qa! | endif
is commented, the problem disappear.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions